sqlitePushIntrospect() — drizzle-orm Function Reference
Architecture documentation for the sqlitePushIntrospect() function in sqliteIntrospect.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 5f4d3311_e879_6740_786e_659afa534b5a["sqlitePushIntrospect()"] cea479b5_7704_0339_de4e_3cc844834ec0["sqliteIntrospect.ts"] 5f4d3311_e879_6740_786e_659afa534b5a -->|defined in| cea479b5_7704_0339_de4e_3cc844834ec0 c7dae276_9495_03b3_6785_ff0423e3125c["pushSQLiteSchema()"] c7dae276_9495_03b3_6785_ff0423e3125c -->|calls| 5f4d3311_e879_6740_786e_659afa534b5a 31460848_0b68_376e_2389_5130b321a073["fromDatabase()"] 5f4d3311_e879_6740_786e_659afa534b5a -->|calls| 31460848_0b68_376e_2389_5130b321a073 style 5f4d3311_e879_6740_786e_659afa534b5a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/sqliteIntrospect.ts lines 60–96
export const sqlitePushIntrospect = async (db: SQLiteDB, filters: string[]) => {
const matchers = filters.map((it) => {
return new Minimatch(it);
});
const filter = (tableName: string) => {
if (matchers.length === 0) return true;
let flags: boolean[] = [];
for (let matcher of matchers) {
if (matcher.negate) {
if (!matcher.match(tableName)) {
flags.push(false);
}
}
if (matcher.match(tableName)) {
flags.push(true);
}
}
if (flags.length > 0) {
return flags.every(Boolean);
}
return false;
};
const progress = new ProgressView(
'Pulling schema from database...',
'Pulling schema from database...',
);
const res = await renderWithTask(progress, fromDatabase(db, filter));
const schema = { id: originUUID, prevId: '', ...res } as SQLiteSchema;
return { schema };
};
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does sqlitePushIntrospect() do?
sqlitePushIntrospect() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/sqliteIntrospect.ts.
Where is sqlitePushIntrospect() defined?
sqlitePushIntrospect() is defined in drizzle-kit/src/cli/commands/sqliteIntrospect.ts at line 60.
What does sqlitePushIntrospect() call?
sqlitePushIntrospect() calls 1 function(s): fromDatabase.
What calls sqlitePushIntrospect()?
sqlitePushIntrospect() is called by 1 function(s): pushSQLiteSchema.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free