Skip to content

@saflib/parser


Function: extractDrizzleTables()

extractDrizzleTables(source): DrizzleTableEntry[]

Extract drizzle sqliteTable / pgTable / mysqlTable definitions from TypeScript source using the syntactic parser only (no type-checker).

Column JSDoc prefers the property assignment; when absent, falls back to a matching property on an *Entity interface in the same file (common pattern in this monorepo).

Parameters

ParameterType
sourcestring

Returns

DrizzleTableEntry[]