interface ISchemaimport { type ISchema } from "https://deno.land/x/pg_mem@2.7.2/mod.ts"; Methodsmany(query: QueryOrAst): any[]Execute a query and return many results none(query: QueryOrAst): voidExecute a query without results one(query: QueryOrAst): anyExecute a query with a single result declareTable(table: Schema): IMemoryTableAnother way to create tables (equivalent to "create table" queries") query(text: QueryOrAst): QueryResultExecute a query queries(text: QueryOrAst): Iterable<QueryResult>Progressively executes a query, yielding results until the end of enumeration (or an exception) getTable(table: string): IMemoryTableGet a table in this db to inspect it getTable(table: string, nullIfNotFound?: boolean): IMemoryTable | nulllistTables(): Iterable<IMemoryTable>List all tables in this schema registerFunction(fn: FunctionDefinition, orReplace?: boolean): thisRegister a function registerOperator(fn: OperatorDefinition): thisRegister a binary operator registerEquivalentType(type: IEquivalentType): ITypeRegister a simple type, which is equivalent to another getType(name: DataType): ITypeGet an existing type registerEnum(name: string, values: string[]): voidRegisters an enum type on this schema migrate(config?: IMigrate.MigrationParams): Promise<void>Database migration, node-sqlite flavor ⚠ Only working when runnin nodejs ! interceptQueries(interceptor: QueryInterceptor): ISubscriptionIntecept queries. If your interceptor returns an array, then the query will not be executed. The given result will be returned instead.