setOperationsIntersectAsFunction() — drizzle-orm Function Reference
Architecture documentation for the setOperationsIntersectAsFunction() function in index.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD f51fd80a_2a6c_e357_5751_59ab354d7c44["setOperationsIntersectAsFunction()"] 34f01008_7c45_3804_1fad_b8b59cd8a413["MyDurableObject"] f51fd80a_2a6c_e357_5751_59ab354d7c44 -->|defined in| 34f01008_7c45_3804_1fad_b8b59cd8a413 7c7acbfe_6328_c8df_feba_552ee62a84d9["default.fetch()"] 7c7acbfe_6328_c8df_feba_552ee62a84d9 -->|calls| f51fd80a_2a6c_e357_5751_59ab354d7c44 b19b108f_def7_3a32_99a3_c8be51ce2fbf["beforeEach()"] f51fd80a_2a6c_e357_5751_59ab354d7c44 -->|calls| b19b108f_def7_3a32_99a3_c8be51ce2fbf 20636bd4_31a2_ed9f_3826_c7046d0ccd5e["setupSetOperationTest()"] f51fd80a_2a6c_e357_5751_59ab354d7c44 -->|calls| 20636bd4_31a2_ed9f_3826_c7046d0ccd5e style f51fd80a_2a6c_e357_5751_59ab354d7c44 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/sqlite/durable-objects/index.ts lines 2840–2872
async setOperationsIntersectAsFunction(): Promise<void> {
try {
await this.beforeEach();
await setupSetOperationTest(this.db);
const result = intersect(
this.db.select({ id: citiesTable.id, name: citiesTable.name }).from(citiesTable).where(eq(citiesTable.id, 1)),
this.db.select({ id: users2Table.id, name: users2Table.name }).from(users2Table).where(eq(users2Table.id, 1)),
this.db.select({ id: users2Table.id, name: users2Table.name }).from(users2Table).where(eq(users2Table.id, 1)),
).all();
expect(result).length(0);
expect(result).deep.equal([]);
expect(() => {
intersect(
this.db
.select({ id: citiesTable.id, name: citiesTable.name })
.from(citiesTable).where(eq(citiesTable.id, 1)),
this.db
.select({ name: users2Table.name, id: users2Table.id })
.from(users2Table).where(eq(users2Table.id, 1)),
this.db
.select({ id: users2Table.id, name: users2Table.name })
.from(users2Table).where(eq(users2Table.id, 1)),
).run();
}).throw();
} catch (error: any) {
console.error(error);
throw new Error(`setOperationsIntersectAsFunction error`);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setOperationsIntersectAsFunction() do?
setOperationsIntersectAsFunction() is a function in the drizzle-orm codebase, defined in integration-tests/tests/sqlite/durable-objects/index.ts.
Where is setOperationsIntersectAsFunction() defined?
setOperationsIntersectAsFunction() is defined in integration-tests/tests/sqlite/durable-objects/index.ts at line 2840.
What does setOperationsIntersectAsFunction() call?
setOperationsIntersectAsFunction() calls 2 function(s): beforeEach, setupSetOperationTest.
What calls setOperationsIntersectAsFunction()?
setOperationsIntersectAsFunction() is called by 1 function(s): default.fetch.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free