(sql: string)
| 298 | } |
| 299 | |
| 300 | export function parseSchema(sql: string): ParsedSchema { |
| 301 | const statements = splitStatements(sql); |
| 302 | const tables: ParsedTable[] = []; |
| 303 | for (const stmt of statements) { |
| 304 | const table = parseCreateTable(stmt); |
| 305 | if (table) tables.push(table); |
| 306 | } |
| 307 | return { tables, statements }; |
| 308 | } |
no test coverage detected