extractUsedTable() — drizzle-orm Function Reference
Architecture documentation for the extractUsedTable() function in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8cb72a5a_ac64_bab7_7080_4d49b2e823f9["extractUsedTable()"] 5eb95521_a13c_5ed6_36c8_8869eb8138fc["utils.ts"] 8cb72a5a_ac64_bab7_7080_4d49b2e823f9 -->|defined in| 5eb95521_a13c_5ed6_36c8_8869eb8138fc 4332457d_bf9f_339a_ebf9_293515c7522c["_prepare()"] 4332457d_bf9f_339a_ebf9_293515c7522c -->|calls| 8cb72a5a_ac64_bab7_7080_4d49b2e823f9 aaa83d1f_b084_babd_31ef_eb03a1137646["_prepare()"] aaa83d1f_b084_babd_31ef_eb03a1137646 -->|calls| 8cb72a5a_ac64_bab7_7080_4d49b2e823f9 99891865_6c32_2250_e8dc_130a485cf796["_prepare()"] 99891865_6c32_2250_e8dc_130a485cf796 -->|calls| 8cb72a5a_ac64_bab7_7080_4d49b2e823f9 style 8cb72a5a_ac64_bab7_7080_4d49b2e823f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-core/utils.ts lines 59–70
export function extractUsedTable(table: SQLiteTable | Subquery | SQLiteViewBase | SQL): string[] {
if (is(table, SQLiteTable)) {
return [`${table[Table.Symbol.BaseName]}`];
}
if (is(table, Subquery)) {
return table._.usedTables ?? [];
}
if (is(table, SQL)) {
return table.usedTables ?? [];
}
return [];
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does extractUsedTable() do?
extractUsedTable() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/utils.ts.
Where is extractUsedTable() defined?
extractUsedTable() is defined in drizzle-orm/src/sqlite-core/utils.ts at line 59.
What calls extractUsedTable()?
extractUsedTable() is called by 3 function(s): _prepare, _prepare, _prepare.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free