@depup/pg-mem 3.0.14-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/changes.json +26 -0
- package/index.d.ts +1 -0
- package/index.js +16547 -0
- package/index.js.map +1 -0
- package/package.json +196 -0
- package/readme.md +297 -0
- package/types/adapters/adapters.d.ts +37 -0
- package/types/adapters/index.d.ts +2 -0
- package/types/adapters/pg-socket-adapter.d.ts +30 -0
- package/types/column.d.ts +27 -0
- package/types/constraints/foreign-key.d.ts +14 -0
- package/types/constraints/generated-from-expr.d.ts +14 -0
- package/types/constraints/generated-identity.d.ts +13 -0
- package/types/constraints/index-cst.d.ts +9 -0
- package/types/constraints/subscription.d.ts +7 -0
- package/types/constraints/wrapped.d.ts +9 -0
- package/types/datatypes/datatype-base.d.ts +66 -0
- package/types/datatypes/datatypes-geometric.d.ts +59 -0
- package/types/datatypes/datatypes-geometric.spec.d.ts +2 -0
- package/types/datatypes/datatypes.d.ts +101 -0
- package/types/datatypes/index.d.ts +2 -0
- package/types/datatypes/t-custom-enum.d.ts +21 -0
- package/types/datatypes/t-equivalent.d.ts +18 -0
- package/types/datatypes/t-inet.d.ts +13 -0
- package/types/datatypes/t-interval.d.ts +13 -0
- package/types/datatypes/t-jsonb.d.ts +16 -0
- package/types/datatypes/t-record.d.ts +17 -0
- package/types/datatypes/t-regclass.d.ts +11 -0
- package/types/datatypes/t-regtype.d.ts +11 -0
- package/types/datatypes/t-time.d.ts +14 -0
- package/types/datatypes/t-timestamp.d.ts +18 -0
- package/types/db.d.ts +3 -0
- package/types/evaluator.d.ts +61 -0
- package/types/execution/clean-results.d.ts +5 -0
- package/types/execution/exec-utils.d.ts +19 -0
- package/types/execution/records-mutations/deletion.d.ts +8 -0
- package/types/execution/records-mutations/insert.d.ts +13 -0
- package/types/execution/records-mutations/mutation-base.d.ts +31 -0
- package/types/execution/records-mutations/truncate-table.d.ts +10 -0
- package/types/execution/records-mutations/update.d.ts +10 -0
- package/types/execution/schema-amends/alter-enum.d.ts +20 -0
- package/types/execution/schema-amends/alter-sequence.d.ts +19 -0
- package/types/execution/schema-amends/alter.d.ts +19 -0
- package/types/execution/schema-amends/comment.d.ts +19 -0
- package/types/execution/schema-amends/create-enum.d.ts +20 -0
- package/types/execution/schema-amends/create-function.d.ts +20 -0
- package/types/execution/schema-amends/create-index.d.ts +19 -0
- package/types/execution/schema-amends/create-materialized-view.d.ts +19 -0
- package/types/execution/schema-amends/create-schema.d.ts +19 -0
- package/types/execution/schema-amends/create-sequence.d.ts +21 -0
- package/types/execution/schema-amends/create-table.d.ts +21 -0
- package/types/execution/schema-amends/create-view.d.ts +22 -0
- package/types/execution/schema-amends/do.d.ts +9 -0
- package/types/execution/schema-amends/drop-index.d.ts +18 -0
- package/types/execution/schema-amends/drop-sequence.d.ts +18 -0
- package/types/execution/schema-amends/drop-table.d.ts +19 -0
- package/types/execution/schema-amends/drop-type.d.ts +18 -0
- package/types/execution/select.d.ts +15 -0
- package/types/execution/set.d.ts +9 -0
- package/types/execution/show.d.ts +8 -0
- package/types/execution/statement-exec.d.ts +26 -0
- package/types/execution/transaction-statements.d.ts +16 -0
- package/types/functions/date.d.ts +3 -0
- package/types/functions/index.d.ts +2 -0
- package/types/functions/numbers.d.ts +3 -0
- package/types/functions/sequence-fns.d.ts +3 -0
- package/types/functions/string.d.ts +3 -0
- package/types/functions/subquery.d.ts +3 -0
- package/types/functions/system.d.ts +3 -0
- package/types/index.d.ts +5 -0
- package/types/interfaces-private.d.ts +605 -0
- package/types/interfaces.d.ts +449 -0
- package/types/migrate/migrate-interfaces.d.ts +32 -0
- package/types/migrate/migrate.d.ts +8 -0
- package/types/misc/buffer-deno.d.ts +7 -0
- package/types/misc/buffer-node.d.ts +7 -0
- package/types/misc/pg-escape.d.ts +2 -0
- package/types/misc/pg-utils.d.ts +3 -0
- package/types/parser/context.d.ts +26 -0
- package/types/parser/expression-builder.d.ts +8 -0
- package/types/parser/function-call.d.ts +4 -0
- package/types/parser/parse-cache.d.ts +6 -0
- package/types/schema/btree-index.d.ts +48 -0
- package/types/schema/consts.d.ts +10 -0
- package/types/schema/custom-index.d.ts +31 -0
- package/types/schema/function-call-table.d.ts +20 -0
- package/types/schema/information-schema/columns-list.d.ts +13 -0
- package/types/schema/information-schema/constraint-column-usage.d.ts +10 -0
- package/types/schema/information-schema/index.d.ts +3 -0
- package/types/schema/information-schema/key-column-usage.d.ts +10 -0
- package/types/schema/information-schema/table-constraints.d.ts +10 -0
- package/types/schema/information-schema/table-list.d.ts +14 -0
- package/types/schema/overload-resolver.d.ts +17 -0
- package/types/schema/pg-catalog/binary-operators.d.ts +3 -0
- package/types/schema/pg-catalog/index.d.ts +3 -0
- package/types/schema/pg-catalog/pg-attribute-list.d.ts +11 -0
- package/types/schema/pg-catalog/pg-class.d.ts +13 -0
- package/types/schema/pg-catalog/pg-constraints-list.d.ts +13 -0
- package/types/schema/pg-catalog/pg-database.d.ts +17 -0
- package/types/schema/pg-catalog/pg-enum-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg-index-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg-namespace-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg-proc.d.ts +10 -0
- package/types/schema/pg-catalog/pg-range.d.ts +10 -0
- package/types/schema/pg-catalog/pg-sequences-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg-type-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg-user-list.d.ts +10 -0
- package/types/schema/pg-catalog/pg_statio_user_tables.d.ts +25 -0
- package/types/schema/pg-catalog/sql-function-language.d.ts +3 -0
- package/types/schema/prepared-intercepted.d.ts +11 -0
- package/types/schema/prepared.d.ts +5 -0
- package/types/schema/readonly-table.d.ts +62 -0
- package/types/schema/schema.d.ts +73 -0
- package/types/schema/sequence.d.ts +27 -0
- package/types/schema/table-index.d.ts +32 -0
- package/types/schema/values-table.d.ts +16 -0
- package/types/schema/view.d.ts +18 -0
- package/types/table.d.ts +97 -0
- package/types/transaction.d.ts +26 -0
- package/types/transforms/aggregation.d.ts +41 -0
- package/types/transforms/aggregations/array_agg.d.ts +11 -0
- package/types/transforms/aggregations/avg.d.ts +11 -0
- package/types/transforms/aggregations/bool-aggregs.d.ts +12 -0
- package/types/transforms/aggregations/count.d.ts +19 -0
- package/types/transforms/aggregations/json_aggs.d.ts +11 -0
- package/types/transforms/aggregations/max-min.d.ts +12 -0
- package/types/transforms/aggregations/sum.d.ts +11 -0
- package/types/transforms/alias.d.ts +29 -0
- package/types/transforms/and-filter.d.ts +15 -0
- package/types/transforms/array-filter.d.ts +14 -0
- package/types/transforms/between-filter.d.ts +16 -0
- package/types/transforms/build-filter.d.ts +4 -0
- package/types/transforms/distinct.d.ts +16 -0
- package/types/transforms/eq-filter.d.ts +17 -0
- package/types/transforms/false-filter.d.ts +11 -0
- package/types/transforms/in-filter.d.ts +14 -0
- package/types/transforms/ineq-filter.d.ts +16 -0
- package/types/transforms/join.d.ts +74 -0
- package/types/transforms/limit.d.ts +18 -0
- package/types/transforms/not-in-filter.d.ts +15 -0
- package/types/transforms/or-filter.d.ts +13 -0
- package/types/transforms/order-by.d.ts +26 -0
- package/types/transforms/restrictive-index.d.ts +15 -0
- package/types/transforms/selection.d.ts +45 -0
- package/types/transforms/seq-scan.d.ts +14 -0
- package/types/transforms/startswith-filter.d.ts +14 -0
- package/types/transforms/transform-base.d.ts +100 -0
- package/types/transforms/union.d.ts +32 -0
- package/types/utils.d.ts +86 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ITable, IValue, _IIndex, _Transaction } from '../../interfaces-private';
|
|
2
|
+
import { Schema, nil } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class ColumnsListSchema extends ReadOnlyTable implements _ITable {
|
|
5
|
+
get ownSymbol(): symbol;
|
|
6
|
+
_schema: Schema;
|
|
7
|
+
entropy(t: _Transaction): number;
|
|
8
|
+
enumerate(t: _Transaction): Generator<any, void, undefined>;
|
|
9
|
+
make(table: _ITable, i: number, t: IValue): any;
|
|
10
|
+
hasItem(value: any): boolean;
|
|
11
|
+
getIndex(forValue: IValue): _IIndex | nil;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=columns-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class ConstraintColumnUsage extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=constraint-column-usage.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class KeyColumnUsage extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=key-column-usage.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class TableConstraints extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=table-constraints.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ITable, IValue, _IIndex, _Transaction } from '../../interfaces-private';
|
|
2
|
+
import { Schema, nil } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class TablesSchema extends ReadOnlyTable implements _ITable {
|
|
5
|
+
get ownSymbol(): symbol;
|
|
6
|
+
isOriginOf(v: IValue): boolean;
|
|
7
|
+
_schema: Schema;
|
|
8
|
+
entropy(t: _Transaction): number;
|
|
9
|
+
enumerate(t: _Transaction): Generator<any, void, unknown>;
|
|
10
|
+
make(t: _ITable): any;
|
|
11
|
+
hasItem(value: any): boolean;
|
|
12
|
+
getIndex(forValue: IValue): _IIndex | nil;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=table-list.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _IType, _ArgDefDetails, nil, IValue } from '../interfaces-private';
|
|
2
|
+
export interface HasSig {
|
|
3
|
+
name: string;
|
|
4
|
+
args: _ArgDefDetails[];
|
|
5
|
+
argsVariadic?: _IType | nil;
|
|
6
|
+
}
|
|
7
|
+
export declare class OverloadResolver<T extends HasSig> {
|
|
8
|
+
private implicitCastOnly;
|
|
9
|
+
private byName;
|
|
10
|
+
constructor(implicitCastOnly: boolean);
|
|
11
|
+
add(value: T, replaceIfExists: boolean): void;
|
|
12
|
+
getOverloads(name: string): T[];
|
|
13
|
+
remove(value: T): void;
|
|
14
|
+
resolve(name: string, args: IValue[]): nil | T;
|
|
15
|
+
getExact(name: string, types: _IType[]): T | nil;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=overload-resolver.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { _ITable, IValue, _IIndex } from '../../interfaces-private';
|
|
2
|
+
import { nil, Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgAttributeTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
getIndex(forValue: IValue): _IIndex | nil;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=pg-attribute-list.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ITable, _IIndex, _Transaction } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgClassListTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
get ownSymbol(): symbol;
|
|
6
|
+
_schema: Schema;
|
|
7
|
+
entropy(t: _Transaction): number;
|
|
8
|
+
enumerate(): Generator<never, void, unknown>;
|
|
9
|
+
makeInedx(t: _IIndex): any;
|
|
10
|
+
makeTable(t: _ITable): any;
|
|
11
|
+
hasItem(value: any): boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=pg-class.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ITable, IValue, _IIndex, _Transaction } from '../../interfaces-private';
|
|
2
|
+
import { nil, Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgConstraintTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
get ownSymbol(): symbol;
|
|
6
|
+
_schema: Schema;
|
|
7
|
+
entropy(t: _Transaction): number;
|
|
8
|
+
enumerate(t: _Transaction): Generator<any, void, undefined>;
|
|
9
|
+
make(table: _ITable, i: number, t: IValue): any;
|
|
10
|
+
hasItem(value: any): boolean;
|
|
11
|
+
getIndex(forValue: IValue): _IIndex | nil;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=pg-constraints-list.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _ITable, _Transaction } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
declare const IS_SCHEMA: unique symbol;
|
|
5
|
+
export declare class PgDatabaseTable extends ReadOnlyTable implements _ITable {
|
|
6
|
+
get ownSymbol(): symbol;
|
|
7
|
+
_schema: Schema;
|
|
8
|
+
entropy(t: _Transaction): number;
|
|
9
|
+
enumerate(): Generator<{
|
|
10
|
+
oid: number;
|
|
11
|
+
datname: string;
|
|
12
|
+
[IS_SCHEMA]: boolean;
|
|
13
|
+
}, void, unknown>;
|
|
14
|
+
hasItem(value: any): boolean;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=pg-database.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgEnumTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-enum-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgIndexTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-index-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgNamespaceTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-namespace-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgProc extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-proc.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgRange extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-range.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgSequencesTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-sequences-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgTypeTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-type-list.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
export declare class PgUserTable extends ReadOnlyTable implements _ITable {
|
|
5
|
+
_schema: Schema;
|
|
6
|
+
entropy(): number;
|
|
7
|
+
enumerate(): Generator<never, void, unknown>;
|
|
8
|
+
hasItem(value: any): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pg-user-list.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _ITable } from '../../interfaces-private';
|
|
2
|
+
import { Schema } from '../../interfaces';
|
|
3
|
+
import { ReadOnlyTable } from '../readonly-table';
|
|
4
|
+
declare const IS_SCHEMA: unique symbol;
|
|
5
|
+
export declare class PgStatioUserTables extends ReadOnlyTable implements _ITable {
|
|
6
|
+
_schema: Schema;
|
|
7
|
+
entropy(): number;
|
|
8
|
+
enumerate(): Generator<{
|
|
9
|
+
relid: number;
|
|
10
|
+
schemaname: string;
|
|
11
|
+
relname: string;
|
|
12
|
+
heap_blks_read: number;
|
|
13
|
+
heap_blks_hit: number;
|
|
14
|
+
idx_blks_read: number;
|
|
15
|
+
idx_blks_hit: number;
|
|
16
|
+
toast_blks_read: number;
|
|
17
|
+
toast_blks_hit: number;
|
|
18
|
+
tidx_blks_read: number;
|
|
19
|
+
tidx_blks_hit: number;
|
|
20
|
+
[IS_SCHEMA]: boolean;
|
|
21
|
+
}, void, unknown>;
|
|
22
|
+
hasItem(value: any): boolean;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=pg_statio_user_tables.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IBoundQuery, IPreparedQuery, QueryDescription, QueryResult } from '../interfaces';
|
|
2
|
+
export declare class InterceptedPreparedQuery implements IPreparedQuery, IBoundQuery {
|
|
3
|
+
private command;
|
|
4
|
+
private result;
|
|
5
|
+
constructor(command: string, result: any[]);
|
|
6
|
+
describe(): QueryDescription;
|
|
7
|
+
bind(args?: any[]): IBoundQuery;
|
|
8
|
+
iterate(): IterableIterator<QueryResult>;
|
|
9
|
+
executeAll(): QueryResult;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=prepared-intercepted.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Statement } from 'pgsql-ast-parser';
|
|
2
|
+
import { _IPreparedQuery, _ISchema, nil, Parameter } from '../interfaces-private';
|
|
3
|
+
export declare function collectParams(stmt: Statement[]): Parameter[] | null;
|
|
4
|
+
export declare function prepareQuery(schema: _ISchema, query: Statement[], singleSql: string | nil): _IPreparedQuery;
|
|
5
|
+
//# sourceMappingURL=prepared.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { _ITable, _ISelection, _ISchema, _Transaction, _IIndex, IValue, _Column, SchemaField, IndexDef, _Explainer, _SelectExplanation, ChangeHandler, Stats, DropHandler, IndexHandler, Reg, _IConstraint, TruncateHandler, Row } from '../interfaces-private';
|
|
2
|
+
import { CreateColumnDef, ExprRef, TableConstraint } from 'pgsql-ast-parser';
|
|
3
|
+
import { DataSourceBase } from '../transforms/transform-base';
|
|
4
|
+
import { Schema, nil, ISubscription, ColumnDef } from '../interfaces';
|
|
5
|
+
export declare abstract class ReadOnlyTable extends DataSourceBase implements _ITable, _ISelection {
|
|
6
|
+
private schema;
|
|
7
|
+
get isExecutionWithNoResult(): boolean;
|
|
8
|
+
get primaryIndex(): nil | IndexDef;
|
|
9
|
+
getColumns(): Iterable<ColumnDef>;
|
|
10
|
+
abstract entropy(t: _Transaction): number;
|
|
11
|
+
abstract enumerate(t: _Transaction): Iterable<Row>;
|
|
12
|
+
abstract hasItem(value: Row, t: _Transaction): boolean;
|
|
13
|
+
abstract readonly _schema: Schema;
|
|
14
|
+
reg: Reg;
|
|
15
|
+
readonly selection: _ISelection;
|
|
16
|
+
readonly hidden = true;
|
|
17
|
+
isOriginOf(v: IValue): boolean;
|
|
18
|
+
get type(): "table";
|
|
19
|
+
constructor(schema: _ISchema);
|
|
20
|
+
get name(): string;
|
|
21
|
+
register(): void;
|
|
22
|
+
private columnsById;
|
|
23
|
+
private _columns?;
|
|
24
|
+
private build;
|
|
25
|
+
protected buildColumnEvaluator(_col: SchemaField, idx: number): IValue;
|
|
26
|
+
get columns(): ReadonlyArray<IValue>;
|
|
27
|
+
getColumn(column: string | ExprRef): IValue;
|
|
28
|
+
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil;
|
|
29
|
+
explain(e: _Explainer): _SelectExplanation;
|
|
30
|
+
listIndices(): IndexDef[];
|
|
31
|
+
stats(t: _Transaction): Stats | null;
|
|
32
|
+
rename(to: string): this;
|
|
33
|
+
update(t: _Transaction, toUpdate: any): never;
|
|
34
|
+
addColumn(column: SchemaField | CreateColumnDef): _Column;
|
|
35
|
+
getColumnRef(column: string, nullIfNotFound?: boolean): _Column;
|
|
36
|
+
getConstraint(constraint: string): _IConstraint | nil;
|
|
37
|
+
addConstraint(constraint: TableConstraint, t: _Transaction): _IConstraint;
|
|
38
|
+
insert(item: any): void;
|
|
39
|
+
doInsert(toInsert: any): void;
|
|
40
|
+
delete(t: _Transaction, toDelete: Row): void;
|
|
41
|
+
truncate(t: _Transaction): void;
|
|
42
|
+
createIndex(): _IConstraint;
|
|
43
|
+
dropIndex(t: _Transaction, name: string): void;
|
|
44
|
+
setHidden(): this;
|
|
45
|
+
drop(t: _Transaction): void;
|
|
46
|
+
setReadonly(): this;
|
|
47
|
+
getIndex(...forValue: IValue[]): _IIndex | nil;
|
|
48
|
+
on(): any;
|
|
49
|
+
onBeforeChange(columns: 'all' | (string | _Column)[], check: ChangeHandler): {
|
|
50
|
+
unsubscribe(): void;
|
|
51
|
+
};
|
|
52
|
+
onCheckChange(columns: string[], check: ChangeHandler): {
|
|
53
|
+
unsubscribe(): void;
|
|
54
|
+
};
|
|
55
|
+
onTruncate(sub: TruncateHandler): ISubscription;
|
|
56
|
+
onDrop(sub: DropHandler): ISubscription;
|
|
57
|
+
onIndex(sub: IndexHandler): ISubscription;
|
|
58
|
+
find(template?: Row, columns?: (keyof Row)[]): Row[];
|
|
59
|
+
make(table: _ITable, i: number, t: IValue): any;
|
|
60
|
+
itemsByTable(table: string | _ITable, t: _Transaction): IterableIterator<any>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=readonly-table.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ISchema, DataType, IType, Schema, QueryResult, nil, FunctionDefinition, IEquivalentType, QueryInterceptor, ISubscription, OperatorDefinition, QueryOrAst, IPreparedQuery } from '../interfaces';
|
|
2
|
+
import { _IDb, _ISelection, _ISchema, _Transaction, _ITable, _SelectExplanation, IValue, _IType, _IRelation, QueryObjOpts, _ISequence, RegClass, Reg, TypeQuery, BeingCreated, _FunctionDefinition, _OperatorDefinition } from '../interfaces-private';
|
|
3
|
+
import { DropFunctionStatement, BinaryOperator, QName, DataTypeDef, CreateSequenceOptions, CreateExtensionStatement } from 'pgsql-ast-parser';
|
|
4
|
+
import { MemoryTable } from '../table';
|
|
5
|
+
import { MigrationParams } from '../migrate/migrate-interfaces';
|
|
6
|
+
export declare class DbSchema implements _ISchema, ISchema {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly db: _IDb;
|
|
9
|
+
readonly dualTable: _ITable;
|
|
10
|
+
private relsByNameCas;
|
|
11
|
+
private relsByCls;
|
|
12
|
+
private relsByTyp;
|
|
13
|
+
private _tables;
|
|
14
|
+
private fns;
|
|
15
|
+
private ops;
|
|
16
|
+
private installedExtensions;
|
|
17
|
+
private readonly;
|
|
18
|
+
private interceptors;
|
|
19
|
+
lastSelect?: _ISelection;
|
|
20
|
+
constructor(name: string, db: _IDb);
|
|
21
|
+
setReadonly(): this;
|
|
22
|
+
none(query: QueryOrAst): void;
|
|
23
|
+
one(query: QueryOrAst): any;
|
|
24
|
+
many(query: QueryOrAst): any[];
|
|
25
|
+
query(text: QueryOrAst): QueryResult;
|
|
26
|
+
prepare(query: QueryOrAst): IPreparedQuery;
|
|
27
|
+
private parse;
|
|
28
|
+
queries(query: QueryOrAst): Iterable<QueryResult>;
|
|
29
|
+
registerEnum(name: string, values: string[]): void;
|
|
30
|
+
getThisOrSiblingFor(name: QName): _ISchema;
|
|
31
|
+
private simpleTypes;
|
|
32
|
+
private sizeableTypes;
|
|
33
|
+
parseType(native: string): _IType;
|
|
34
|
+
getOwnType(t: DataTypeDef): _IType | null;
|
|
35
|
+
getTypePub(t: DataType | IType): _IType;
|
|
36
|
+
getType(t: TypeQuery): _IType;
|
|
37
|
+
getObject(p: QName): _IRelation;
|
|
38
|
+
getObject(p: QName, opts: BeingCreated): _IRelation;
|
|
39
|
+
getObject(p: QName, opts?: QueryObjOpts): _IRelation | null;
|
|
40
|
+
getOwnObject(name: string): _IRelation | null;
|
|
41
|
+
getObjectByRegOrName(reg: RegClass): _IRelation;
|
|
42
|
+
getObjectByRegOrName(reg: RegClass, opts?: QueryObjOpts): _IRelation | null;
|
|
43
|
+
getObjectByRegClassId(reg: number): _IRelation;
|
|
44
|
+
getObjectByRegClassId(reg: number, opts?: QueryObjOpts): _IRelation | null;
|
|
45
|
+
getOwnObjectByRegClassId(reg: number): _IRelation | null;
|
|
46
|
+
createSequence(t: _Transaction, opts: CreateSequenceOptions | nil, _name: QName | nil): _ISequence;
|
|
47
|
+
explainLastSelect(): _SelectExplanation | undefined;
|
|
48
|
+
explainSelect(sql: string): _SelectExplanation;
|
|
49
|
+
executeCreateExtension(p: CreateExtensionStatement): void;
|
|
50
|
+
getTable(name: string): _ITable;
|
|
51
|
+
getTable(name: string, nullIfNotFound?: boolean): _ITable | null;
|
|
52
|
+
declareTable(table: Schema, noSchemaChange?: boolean): MemoryTable;
|
|
53
|
+
registerEquivalentType(type: IEquivalentType): IType;
|
|
54
|
+
registerEquivalentSizableType(type: IEquivalentType): IType;
|
|
55
|
+
_registerTypeSizeable(name: string, ctor: (sz?: number) => _IType): this;
|
|
56
|
+
_registerType(type: _IType): this;
|
|
57
|
+
_unregisterType(type: _IType): this;
|
|
58
|
+
_reg_register(rel: _IRelation): Reg;
|
|
59
|
+
_reg_unregister(rel: _IRelation): void;
|
|
60
|
+
_reg_rename(rel: _IRelation, oldName: string, newName: string): void;
|
|
61
|
+
tablesCount(t: _Transaction): number;
|
|
62
|
+
listTables(): Iterable<_ITable>;
|
|
63
|
+
registerFunction(fn: FunctionDefinition, replace?: boolean): this;
|
|
64
|
+
registerOperator(op: OperatorDefinition, replace?: boolean): this;
|
|
65
|
+
private _registerOperator;
|
|
66
|
+
resolveFunction(name: string | QName, args: IValue[], forceOwn?: boolean): _FunctionDefinition | nil;
|
|
67
|
+
getFunction(name: string, args: _IType[]): _FunctionDefinition | nil;
|
|
68
|
+
dropFunction(fn: DropFunctionStatement): void;
|
|
69
|
+
resolveOperator(name: BinaryOperator, left: IValue, right: IValue, forceOwn?: boolean): _OperatorDefinition | nil;
|
|
70
|
+
migrate(config?: MigrationParams): Promise<void>;
|
|
71
|
+
interceptQueries(intercept: QueryInterceptor): ISubscription;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AlterSequenceChange, CreateSequenceOptions } from 'pgsql-ast-parser';
|
|
2
|
+
import { _ISchema, _ISequence, _IType, _Transaction, Reg } from '../interfaces-private';
|
|
3
|
+
import { nil } from '../interfaces';
|
|
4
|
+
export declare class Sequence implements _ISequence {
|
|
5
|
+
name: string;
|
|
6
|
+
readonly ownerSchema: _ISchema;
|
|
7
|
+
get type(): 'sequence';
|
|
8
|
+
private symbol;
|
|
9
|
+
private owner?;
|
|
10
|
+
private cfg;
|
|
11
|
+
readonly reg: Reg;
|
|
12
|
+
get cycle(): boolean;
|
|
13
|
+
get dataType(): _IType<any>;
|
|
14
|
+
get inc(): number;
|
|
15
|
+
constructor(name: string, ownerSchema: _ISchema);
|
|
16
|
+
get start(): number;
|
|
17
|
+
get max(): number;
|
|
18
|
+
get min(): number;
|
|
19
|
+
alter(t: _Transaction, opts: CreateSequenceOptions | AlterSequenceChange | nil): this;
|
|
20
|
+
nextValue(t: _Transaction): number;
|
|
21
|
+
setValue(t: _Transaction, value: number, increase?: boolean): void;
|
|
22
|
+
restart(t: _Transaction): void;
|
|
23
|
+
currentValue(t: _Transaction): number;
|
|
24
|
+
private alterOpts;
|
|
25
|
+
drop(t: _Transaction): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sequence.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { _IIndex, IValue, _ITable, _Transaction, _Explainer, _IndexExplanation, IndexOp, IndexKey, Stats } from '../interfaces-private';
|
|
2
|
+
export declare class TableIndex implements _IIndex {
|
|
3
|
+
readonly onTable: _ITable & {
|
|
4
|
+
itemsByTable(table: string, t: _Transaction): Iterable<any>;
|
|
5
|
+
ownSymbol: any;
|
|
6
|
+
};
|
|
7
|
+
private col;
|
|
8
|
+
readonly expressions: IValue[];
|
|
9
|
+
get hash(): string;
|
|
10
|
+
explain(e: _Explainer): _IndexExplanation;
|
|
11
|
+
stats(t: _Transaction, key?: IndexKey): Stats | null;
|
|
12
|
+
iterateKeys(): null;
|
|
13
|
+
constructor(onTable: _ITable & {
|
|
14
|
+
itemsByTable(table: string, t: _Transaction): Iterable<any>;
|
|
15
|
+
ownSymbol: any;
|
|
16
|
+
}, col: IValue);
|
|
17
|
+
get indexName(): string;
|
|
18
|
+
entropy(op: IndexOp): number;
|
|
19
|
+
add(raw: any): void;
|
|
20
|
+
eqFirst([key]: any, t: _Transaction): any;
|
|
21
|
+
eq([rawKey]: any, t: _Transaction): Iterable<any>;
|
|
22
|
+
nin(keys: any[][], t: _Transaction): Generator<any, void, unknown>;
|
|
23
|
+
neq([rawKey]: any, t: _Transaction): Generator<any, void, unknown>;
|
|
24
|
+
gt(rawKey: any, t: _Transaction): Iterable<any>;
|
|
25
|
+
lt(rawKey: any, t: _Transaction): Iterable<any>;
|
|
26
|
+
ge(rawKey: any, t: _Transaction): Iterable<any>;
|
|
27
|
+
le(rawKey: any, t: _Transaction): Iterable<any>;
|
|
28
|
+
enumerate(op: IndexOp): Iterable<any>;
|
|
29
|
+
outside(lo: IndexKey, hi: IndexKey, t: _Transaction): Iterable<any>;
|
|
30
|
+
inside(lo: IndexKey, hi: IndexKey, t: _Transaction): Iterable<any>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=table-index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { nil, Schema, SchemaField } from '../interfaces';
|
|
2
|
+
import { IValue, _Transaction } from '../interfaces-private';
|
|
3
|
+
import { Expr } from 'pgsql-ast-parser';
|
|
4
|
+
import { ReadOnlyTable } from './readonly-table';
|
|
5
|
+
export declare class ValuesTable extends ReadOnlyTable {
|
|
6
|
+
private symbol;
|
|
7
|
+
_schema: Schema;
|
|
8
|
+
private assignments;
|
|
9
|
+
entropy(t: _Transaction): number;
|
|
10
|
+
enumerate(t: _Transaction): Iterable<any>;
|
|
11
|
+
hasItem(value: any, t: _Transaction): boolean;
|
|
12
|
+
/** @override */
|
|
13
|
+
protected buildColumnEvaluator(_col: SchemaField, i: number): IValue;
|
|
14
|
+
constructor(alias: string, items: Expr[][], columnNames: string[] | nil, acceptDefault?: boolean);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=values-table.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Reg, _Explainer, _ISchema, _ISelection, _IView, _Transaction } from '../interfaces-private';
|
|
2
|
+
import { FilterBase } from '../transforms/transform-base';
|
|
3
|
+
export declare class View extends FilterBase implements _IView {
|
|
4
|
+
readonly ownerSchema: _ISchema;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly selection: _ISelection;
|
|
7
|
+
get type(): 'view';
|
|
8
|
+
private _reg?;
|
|
9
|
+
get reg(): Reg;
|
|
10
|
+
constructor(ownerSchema: _ISchema, name: string, selection: _ISelection);
|
|
11
|
+
enumerate(t: _Transaction): Iterable<any>;
|
|
12
|
+
hasItem(value: any, t: _Transaction): boolean;
|
|
13
|
+
explain(e: _Explainer): import("../interfaces-private")._SelectExplanation;
|
|
14
|
+
stats(t: _Transaction): import("../interfaces-private").Stats | null;
|
|
15
|
+
register(): this;
|
|
16
|
+
drop(t: _Transaction): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=view.d.ts.map
|
package/types/table.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { IMemoryTable, Schema, TableEvent, IndexDef, ISubscription, nil, ColumnDef } from './interfaces';
|
|
2
|
+
import { IValue, _ITable, CreateIndexDef, _Transaction, _ISchema, _Column, SchemaField, _IIndex, _Explainer, _SelectExplanation, ChangeHandler, Stats, DropHandler, IndexHandler, Reg, ChangeOpts, _IConstraint, TruncateHandler, TruncateOpts, Row } from './interfaces-private';
|
|
3
|
+
import { Map as ImMap } from 'immutable';
|
|
4
|
+
import { CreateColumnDef, TableConstraintForeignKey, TableConstraint, Expr, Name, ExprRef } from 'pgsql-ast-parser';
|
|
5
|
+
import { ColRef } from './column';
|
|
6
|
+
import { Alias } from './transforms/alias';
|
|
7
|
+
import { DataSourceBase } from './transforms/transform-base';
|
|
8
|
+
type Raw = ImMap<string, Row>;
|
|
9
|
+
declare class ColumnManager {
|
|
10
|
+
private _columns?;
|
|
11
|
+
readonly map: Map<string, ColRef>;
|
|
12
|
+
get columns(): readonly IValue[];
|
|
13
|
+
invalidateColumns(): void;
|
|
14
|
+
get: (key: string) => ColRef | undefined;
|
|
15
|
+
has: (key: string) => boolean;
|
|
16
|
+
values: () => IterableIterator<ColRef>;
|
|
17
|
+
set(name: string, colDef: ColRef): Map<string, ColRef>;
|
|
18
|
+
delete(name: string): boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class MemoryTable extends DataSourceBase implements IMemoryTable<any>, _ITable {
|
|
21
|
+
comment: string | nil;
|
|
22
|
+
get isExecutionWithNoResult(): boolean;
|
|
23
|
+
private handlers;
|
|
24
|
+
readonly selection: Alias;
|
|
25
|
+
private _reg?;
|
|
26
|
+
get reg(): Reg;
|
|
27
|
+
get columns(): readonly IValue<any>[];
|
|
28
|
+
private it;
|
|
29
|
+
private cstGen;
|
|
30
|
+
private hasPrimary;
|
|
31
|
+
private readonly;
|
|
32
|
+
hidden: boolean;
|
|
33
|
+
private dataId;
|
|
34
|
+
private serialsId;
|
|
35
|
+
private constraintsByName;
|
|
36
|
+
private indexByHashAndName;
|
|
37
|
+
readonly columnMgr: ColumnManager;
|
|
38
|
+
name: string;
|
|
39
|
+
private changeHandlers;
|
|
40
|
+
private truncateHandlers;
|
|
41
|
+
private drophandlers;
|
|
42
|
+
private indexHandlers;
|
|
43
|
+
get type(): "table";
|
|
44
|
+
get debugId(): string;
|
|
45
|
+
entropy(t: _Transaction): number;
|
|
46
|
+
isOriginOf(a: IValue): boolean;
|
|
47
|
+
constructor(schema: _ISchema, t: _Transaction, _schema: Schema);
|
|
48
|
+
register(): this;
|
|
49
|
+
stats(t: _Transaction): Stats | null;
|
|
50
|
+
rename(name: string): this;
|
|
51
|
+
getColumn(column: string | ExprRef): IValue;
|
|
52
|
+
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil;
|
|
53
|
+
explain(e: _Explainer): _SelectExplanation;
|
|
54
|
+
addColumn(column: SchemaField | CreateColumnDef, t: _Transaction): _Column;
|
|
55
|
+
getColumnRef(column: string): ColRef;
|
|
56
|
+
getColumnRef(column: string, nullIfNotFound?: boolean): ColRef | nil;
|
|
57
|
+
bin(t: _Transaction): Raw;
|
|
58
|
+
setBin(t: _Transaction, val: Raw): Raw;
|
|
59
|
+
on(event: TableEvent, handler: () => any): ISubscription;
|
|
60
|
+
raise(event: TableEvent): void;
|
|
61
|
+
setReadonly(): this;
|
|
62
|
+
setHidden(): this;
|
|
63
|
+
enumerate(t: _Transaction): Iterable<Row>;
|
|
64
|
+
find(template?: Row, columns?: (keyof Row)[]): Row[];
|
|
65
|
+
remapData(t: _Transaction, modify: (newCopy: Row) => any): void;
|
|
66
|
+
insert(toInsert: Row): Row | null;
|
|
67
|
+
doInsert(t: _Transaction, toInsert: Row, opts?: ChangeOpts): Row | null;
|
|
68
|
+
private changePlan;
|
|
69
|
+
update(t: _Transaction, toUpdate: Row): Row;
|
|
70
|
+
delete(t: _Transaction, toDelete: Row): any;
|
|
71
|
+
truncate(t: _Transaction, _opts?: TruncateOpts): void;
|
|
72
|
+
private indexElt;
|
|
73
|
+
hasItem(item: Row, t: _Transaction): boolean;
|
|
74
|
+
getIndex(...forValues: IValue[]): _IIndex | nil;
|
|
75
|
+
constraintNameGen(constraintName?: string): string;
|
|
76
|
+
addCheck(_t: _Transaction, check: Expr, constraintName?: string): _IConstraint;
|
|
77
|
+
createIndex(t: _Transaction, expressions: CreateIndexDef): _IConstraint | nil;
|
|
78
|
+
createIndex(t: _Transaction, expressions: Name[], type: 'primary' | 'unique', indexName?: string | nil): _IConstraint;
|
|
79
|
+
private determineIndexRelName;
|
|
80
|
+
dropIndex(t: _Transaction, uName: string): void;
|
|
81
|
+
onIndex(sub: IndexHandler): ISubscription;
|
|
82
|
+
listIndices(): IndexDef[];
|
|
83
|
+
get primaryIndex(): IndexDef | null;
|
|
84
|
+
addForeignKey(cst: TableConstraintForeignKey, t: _Transaction): _IConstraint | nil;
|
|
85
|
+
getConstraint(constraint: string): _IConstraint | nil;
|
|
86
|
+
addConstraint(cst: TableConstraint, t: _Transaction): _IConstraint | nil;
|
|
87
|
+
private checkNoConstraint;
|
|
88
|
+
onBeforeChange(columns: 'all' | (string | _Column)[], check: ChangeHandler): ISubscription;
|
|
89
|
+
onCheckChange(columns: string[], check: ChangeHandler): ISubscription;
|
|
90
|
+
getColumns(): Iterable<ColumnDef>;
|
|
91
|
+
private _subChange;
|
|
92
|
+
drop(t: _Transaction, cascade: boolean): void;
|
|
93
|
+
onDrop(sub: DropHandler): ISubscription;
|
|
94
|
+
onTruncate(sub: TruncateHandler): ISubscription;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=table.d.ts.map
|