interface IMemoryDbimport { type IMemoryDb } from "https://dotland.deno.dev/x/pg_mem@3.0.2/mod.ts"; Propertiesreadonlyadapters: LibAdaptersAdapters to create wrappers of this db compatible with known libraries readonlypublic: ISchemaThe default 'public' schema MethodsgetSchema(db?: string | null): ISchemaGet an existing schema createSchema(name: string): ISchemaCreate a schema in this database getTable<T = any>(table: string): IMemoryTable<T>Get a table to inspect it (in the public schema... this is a shortcut for db.public.getTable()) getTable<T = any>(table: string, nullIfNotFound?: boolean): IMemoryTable<T> | nullon(event: "query", handler: (query: string) => any): ISubscriptionSubscribe to a global event on(event: GlobalEvent, handler: () => any): ISubscriptionon(event: GlobalEvent, handler: () => any): ISubscriptionon(event: TableEvent, handler: (table: string) => any): ISubscriptionSubscribe to an event on all tables backup(): IBackupCreates a restore point. 👉 This operation is O(1) (instantaneous, even with millions of records). registerExtension(name: string, install: (schema: ISchema) => void): thisRegisters an extension (that can be installed using the 'create extension' statement) registerLanguage(languageName: string, compiler: LanguageCompiler): thisRegisters a new language, usable in 'DO' blocks, or in 'CREATE FUNCTION' blocks