UNPKG

@adonisjs/lucid

Version:

SQL ORM built on top of Active Record pattern

26 lines (25 loc) 982 B
import { type LibSQLConfig, type SqliteConfig, type QueryClientContract } from '../../../types/database.js'; import { BaseSchemaState } from '../base_schema_state.js'; /** * SQLite schema dumps are delegated to the `sqlite3` CLI instead of * reconstructing SQL manually. */ export declare class SqliteSchemaState extends BaseSchemaState { constructor(client: QueryClientContract, connectionConfig: SqliteConfig | LibSQLConfig, schemaTableName: string, schemaVersionsTableName: string); /** * Dump the structural schema using `sqlite3 .schema --indent`. */ protected dumpSchema(path: string): Promise<void>; /** * Load the schema dump using the `sqlite3` CLI. */ load(path: string): Promise<void>; /** * Resolve the SQLite database path from the configured filename. */ private getDatabasePath; /** * Remove SQLite internal table definitions from the generated output. */ private removeInternalTables; }