transaction() — drizzle-orm Function Reference
Architecture documentation for the transaction() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 94515a16_901e_de35_ce21_bf084e7a3b6f["transaction()"] ec4b43ae_1b96_d924_e3b3_108b18fb2a90["SQLiteDOSession"] 94515a16_901e_de35_ce21_bf084e7a3b6f -->|defined in| ec4b43ae_1b96_d924_e3b3_108b18fb2a90 aa4320f3_9315_2092_74c1_163fdd83d1e9["transaction()"] aa4320f3_9315_2092_74c1_163fdd83d1e9 -->|calls| 94515a16_901e_de35_ce21_bf084e7a3b6f aa4320f3_9315_2092_74c1_163fdd83d1e9["transaction()"] 94515a16_901e_de35_ce21_bf084e7a3b6f -->|calls| aa4320f3_9315_2092_74c1_163fdd83d1e9 style 94515a16_901e_de35_ce21_bf084e7a3b6f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/durable-sqlite/session.ts lines 63–71
override transaction<T>(
transaction: (
tx: SQLiteTransaction<'sync', SqlStorageCursor<Record<string, SqlStorageValue>>, TFullSchema, TSchema>,
) => T,
_config?: SQLiteTransactionConfig,
): T {
const tx = new SQLiteDOTransaction('sync', this.dialect, this, this.schema);
return this.client.transactionSync(() => transaction(tx));
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does transaction() do?
transaction() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/durable-sqlite/session.ts.
Where is transaction() defined?
transaction() is defined in drizzle-orm/src/durable-sqlite/session.ts at line 63.
What does transaction() call?
transaction() calls 1 function(s): transaction.
What calls transaction()?
transaction() is called by 1 function(s): transaction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free