setOperationsExceptAsFunction() — drizzle-orm Function Reference
Architecture documentation for the setOperationsExceptAsFunction() function in index.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD dd7b4468_f893_9d3a_01c9_06e717ed779e["setOperationsExceptAsFunction()"] 34f01008_7c45_3804_1fad_b8b59cd8a413["MyDurableObject"] dd7b4468_f893_9d3a_01c9_06e717ed779e -->|defined in| 34f01008_7c45_3804_1fad_b8b59cd8a413 7c7acbfe_6328_c8df_feba_552ee62a84d9["default.fetch()"] 7c7acbfe_6328_c8df_feba_552ee62a84d9 -->|calls| dd7b4468_f893_9d3a_01c9_06e717ed779e b19b108f_def7_3a32_99a3_c8be51ce2fbf["beforeEach()"] dd7b4468_f893_9d3a_01c9_06e717ed779e -->|calls| b19b108f_def7_3a32_99a3_c8be51ce2fbf 20636bd4_31a2_ed9f_3826_c7046d0ccd5e["setupSetOperationTest()"] dd7b4468_f893_9d3a_01c9_06e717ed779e -->|calls| 20636bd4_31a2_ed9f_3826_c7046d0ccd5e style dd7b4468_f893_9d3a_01c9_06e717ed779e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/sqlite/durable-objects/index.ts lines 2903–2937
async setOperationsExceptAsFunction(): Promise<void> {
try {
await this.beforeEach();
await setupSetOperationTest(this.db);
const result = except(
this.db.select({ id: citiesTable.id, name: citiesTable.name }).from(citiesTable),
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)),
).orderBy(asc(sql`id`)).all();
expect(result).length(2);
expect(result).deep.equal([
{ id: 2, name: 'London' },
{ id: 3, name: 'Tampa' },
]);
expect(() => {
except(
this.db
.select({ name: citiesTable.name, id: citiesTable.id })
.from(citiesTable),
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)),
).orderBy(asc(sql`id`)).run();
}).throw();
} catch (error: any) {
console.error(error);
throw new Error(`setOperationsExceptAsFunction error`);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setOperationsExceptAsFunction() do?
setOperationsExceptAsFunction() is a function in the drizzle-orm codebase, defined in integration-tests/tests/sqlite/durable-objects/index.ts.
Where is setOperationsExceptAsFunction() defined?
setOperationsExceptAsFunction() is defined in integration-tests/tests/sqlite/durable-objects/index.ts at line 2903.
What does setOperationsExceptAsFunction() call?
setOperationsExceptAsFunction() calls 2 function(s): beforeEach, setupSetOperationTest.
What calls setOperationsExceptAsFunction()?
setOperationsExceptAsFunction() 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