import { DbSchema } from "https://deno.land/x/pg_mem@3.0.3/schema/schema.ts";
Constructors
new
DbSchema(name: string, db: _IDb)Properties
private
_tables: Set<_ITable>private
fns: OverloadResolver<_FunctionDefinition>private
interceptors: Set<{ readonly intercept: QueryInterceptor; }>private
ops: OverloadResolver<_OperatorDefinition>private
relsByCls: Map<number, _IRelation>private
relsByNameCas: Map<string, _IRelation>private
relsByTyp: Map<number, _IRelation>private
simpleTypes: { [key: string]: _IType; }readonly
dualTable: _ITableoptional
lastSelect: _ISelectionMethods
private
_registerOperator(fn: OperatorDefinition, replace: boolean): thisprivate
parse(query: QueryOrAst): Statement[]_reg_register(rel: _IRelation): Reg
_reg_rename(): void
_reg_unregister(rel: _IRelation): void
_registerType(type: _IType): this
_registerTypeSizeable(name: string, ctor: (sz?: number) => _IType): this
_unregisterType(type: _IType): this
declareTable(table: Schema, noSchemaChange?: boolean): MemoryTable
dropFunction(fn: DropFunctionStatement): void
explainLastSelect(): _SelectExplanation | undefined
explainSelect(sql: string): _SelectExplanation
getFunction(name: string, args: _IType[]): _FunctionDefinition | nil
getObject(p: QName): _IRelation
getObject(p: QName, opts: BeingCreated): _IRelation
getObject(p: QName, opts?: QueryObjOpts): _IRelation | null
getObjectByRegClassId(reg: number): _IRelation
getObjectByRegClassId(reg: number, opts?: QueryObjOpts): _IRelation | null
getObjectByRegOrName(reg: RegClass, opts?: QueryObjOpts): _IRelation | null
getOwnObject(name: string): _IRelation | null
getOwnObjectByRegClassId(reg: number): _IRelation | null
getOwnType(t: DataTypeDef): _IType | null
getThisOrSiblingFor(name: QName): _ISchema
getTypePub(t: DataType | IType): _IType
interceptQueries(intercept: QueryInterceptor): ISubscription
listTables(): Iterable<_ITable>
many(query: QueryOrAst): any[]
migrate(config?: MigrationParams)
none(query: QueryOrAst): void
one(query: QueryOrAst): any
prepare(query: QueryOrAst): IPreparedQuery
queries(query: QueryOrAst): Iterable<QueryResult>
query(text: QueryOrAst): QueryResult
registerEnum(name: string, values: string[])
registerFunction(fn: FunctionDefinition, replace?: boolean): this
registerOperator(op: OperatorDefinition, replace?: boolean): this
tablesCount(t: _Transaction): number