@mrnafisia/type-query 1.0.46 → 1.0.47
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 +2 -2
- package/dist/U.d.ts +2 -2
- package/dist/U.js +27 -27
- package/dist/context.d.ts +987 -987
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +85 -85
- package/dist/dictionary.d.ts +12 -12
- package/dist/dictionary.js +179 -179
- package/dist/entity.d.ts +3562 -3562
- package/dist/entity.js +997 -997
- package/dist/error.d.ts +4 -4
- package/dist/error.js +6 -6
- package/dist/index.d.ts +36 -36
- package/dist/index.js +60 -60
- package/dist/model.d.ts +1005 -1005
- package/dist/model.js +282 -282
- package/dist/parser.d.ts +11 -11
- package/dist/parser.js +120 -120
- package/dist/pool.d.ts +5 -5
- package/dist/pool.js +121 -121
- package/dist/schema.d.ts +25 -25
- package/dist/schema.js +395 -395
- package/dist/testUtil.d.ts +4 -4
- package/dist/testUtil.js +333 -333
- package/dist/types/context.d.ts +55 -55
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/context.js +2 -2
- package/dist/types/entity.d.ts +70 -70
- package/dist/types/entity.js +2 -2
- package/dist/types/json.d.ts +8 -8
- package/dist/types/json.js +2 -2
- package/dist/types/model.d.ts +23 -23
- package/dist/types/model.js +2 -2
- package/dist/types/pool.d.ts +18 -18
- package/dist/types/pool.js +2 -2
- package/dist/types/postgres.d.ts +9 -9
- package/dist/types/postgres.js +2 -2
- package/dist/types/table.d.ts +234 -234
- package/dist/types/table.js +2 -2
- package/dist/types/testUtil.d.ts +26 -26
- package/dist/types/testUtil.js +2 -2
- package/dist/utils.d.ts +67 -67
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +220 -220
- package/package.json +39 -39
package/dist/error.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const PostgresErrors: {
|
|
2
|
-
readonly DATABASE_ALREADY_EXISTS: "42P04";
|
|
3
|
-
};
|
|
4
|
-
export default PostgresErrors;
|
|
1
|
+
declare const PostgresErrors: {
|
|
2
|
+
readonly DATABASE_ALREADY_EXISTS: "42P04";
|
|
3
|
+
};
|
|
4
|
+
export default PostgresErrors;
|
|
5
5
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/error.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var PostgresErrors = {
|
|
4
|
-
DATABASE_ALREADY_EXISTS: '42P04'
|
|
5
|
-
};
|
|
6
|
-
exports.default = PostgresErrors;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var PostgresErrors = {
|
|
4
|
+
DATABASE_ALREADY_EXISTS: '42P04'
|
|
5
|
+
};
|
|
6
|
+
exports.default = PostgresErrors;
|
|
7
7
|
//# sourceMappingURL=error.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import U from './U';
|
|
2
|
-
import PostgresErrors from './error';
|
|
3
|
-
import type { Pool } from './types/pool';
|
|
4
|
-
import { createContext } from './context';
|
|
5
|
-
import { createModelUtils } from './model';
|
|
6
|
-
import type { Context } from './types/context';
|
|
7
|
-
import type { ClientBase, PoolClient } from 'pg';
|
|
8
|
-
import Table, { TableCheck } from './types/table';
|
|
9
|
-
import type { TestTableData } from './types/testUtil';
|
|
10
|
-
import type { SimpleModel, Model } from './types/model';
|
|
11
|
-
import { createPool, addHook, removeHook } from './pool';
|
|
12
|
-
import { testTransaction, createTestTableData } from './testUtil';
|
|
13
|
-
import type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
14
|
-
import { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
15
|
-
import type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
16
|
-
import { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
17
|
-
import * as Parser from './parser';
|
|
18
|
-
import type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
19
|
-
export type { Pool };
|
|
20
|
-
export type { Context };
|
|
21
|
-
export type { ClientBase, PoolClient };
|
|
22
|
-
export type { Table, TableCheck };
|
|
23
|
-
export type { TestTableData };
|
|
24
|
-
export type { SimpleModel, Model };
|
|
25
|
-
export type { JSON, JsonObject, JsonArray, BaseJsonValue };
|
|
26
|
-
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable };
|
|
27
|
-
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery };
|
|
28
|
-
export { U };
|
|
29
|
-
export { PostgresErrors };
|
|
30
|
-
export { createContext };
|
|
31
|
-
export { createModelUtils };
|
|
32
|
-
export { createPool, addHook, removeHook };
|
|
33
|
-
export { testTransaction, createTestTableData };
|
|
34
|
-
export { createEntity, resolveResult, resolveReturning, resolveExpression };
|
|
35
|
-
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
|
|
36
|
-
export { Parser };
|
|
1
|
+
import U from './U';
|
|
2
|
+
import PostgresErrors from './error';
|
|
3
|
+
import type { Pool } from './types/pool';
|
|
4
|
+
import { createContext } from './context';
|
|
5
|
+
import { createModelUtils } from './model';
|
|
6
|
+
import type { Context } from './types/context';
|
|
7
|
+
import type { ClientBase, PoolClient } from 'pg';
|
|
8
|
+
import Table, { TableCheck } from './types/table';
|
|
9
|
+
import type { TestTableData } from './types/testUtil';
|
|
10
|
+
import type { SimpleModel, Model } from './types/model';
|
|
11
|
+
import { createPool, addHook, removeHook } from './pool';
|
|
12
|
+
import { testTransaction, createTestTableData } from './testUtil';
|
|
13
|
+
import type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
14
|
+
import { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
15
|
+
import type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
16
|
+
import { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
17
|
+
import * as Parser from './parser';
|
|
18
|
+
import type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
19
|
+
export type { Pool };
|
|
20
|
+
export type { Context };
|
|
21
|
+
export type { ClientBase, PoolClient };
|
|
22
|
+
export type { Table, TableCheck };
|
|
23
|
+
export type { TestTableData };
|
|
24
|
+
export type { SimpleModel, Model };
|
|
25
|
+
export type { JSON, JsonObject, JsonArray, BaseJsonValue };
|
|
26
|
+
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable };
|
|
27
|
+
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery };
|
|
28
|
+
export { U };
|
|
29
|
+
export { PostgresErrors };
|
|
30
|
+
export { createContext };
|
|
31
|
+
export { createModelUtils };
|
|
32
|
+
export { createPool, addHook, removeHook };
|
|
33
|
+
export { testTransaction, createTestTableData };
|
|
34
|
+
export { createEntity, resolveResult, resolveReturning, resolveExpression };
|
|
35
|
+
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
|
|
36
|
+
export { Parser };
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Parser = exports.getSequenceName = exports.dropTableSQL = exports.createTableSQL = exports.dropSequencesSQL = exports.createSequencesSQL = exports.resolveTablesDependency = exports.dropTables = exports.createTables = exports.resolveExpression = exports.resolveReturning = exports.resolveResult = exports.createEntity = exports.createTestTableData = exports.testTransaction = exports.removeHook = exports.addHook = exports.createPool = exports.createModelUtils = exports.createContext = exports.PostgresErrors = exports.U = void 0;
|
|
30
|
-
var U_1 = __importDefault(require("./U"));
|
|
31
|
-
exports.U = U_1.default;
|
|
32
|
-
var error_1 = __importDefault(require("./error"));
|
|
33
|
-
exports.PostgresErrors = error_1.default;
|
|
34
|
-
var context_1 = require("./context");
|
|
35
|
-
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
36
|
-
var model_1 = require("./model");
|
|
37
|
-
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
38
|
-
var pool_1 = require("./pool");
|
|
39
|
-
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
40
|
-
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
41
|
-
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
42
|
-
var testUtil_1 = require("./testUtil");
|
|
43
|
-
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
44
|
-
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
45
|
-
var entity_1 = require("./entity");
|
|
46
|
-
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
47
|
-
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
48
|
-
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
49
|
-
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
50
|
-
var schema_1 = require("./schema");
|
|
51
|
-
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
52
|
-
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
53
|
-
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
54
|
-
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
55
|
-
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
56
|
-
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
57
|
-
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
58
|
-
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
59
|
-
var Parser = __importStar(require("./parser"));
|
|
60
|
-
exports.Parser = Parser;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Parser = exports.getSequenceName = exports.dropTableSQL = exports.createTableSQL = exports.dropSequencesSQL = exports.createSequencesSQL = exports.resolveTablesDependency = exports.dropTables = exports.createTables = exports.resolveExpression = exports.resolveReturning = exports.resolveResult = exports.createEntity = exports.createTestTableData = exports.testTransaction = exports.removeHook = exports.addHook = exports.createPool = exports.createModelUtils = exports.createContext = exports.PostgresErrors = exports.U = void 0;
|
|
30
|
+
var U_1 = __importDefault(require("./U"));
|
|
31
|
+
exports.U = U_1.default;
|
|
32
|
+
var error_1 = __importDefault(require("./error"));
|
|
33
|
+
exports.PostgresErrors = error_1.default;
|
|
34
|
+
var context_1 = require("./context");
|
|
35
|
+
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
36
|
+
var model_1 = require("./model");
|
|
37
|
+
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
38
|
+
var pool_1 = require("./pool");
|
|
39
|
+
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
40
|
+
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
41
|
+
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
42
|
+
var testUtil_1 = require("./testUtil");
|
|
43
|
+
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
44
|
+
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
45
|
+
var entity_1 = require("./entity");
|
|
46
|
+
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
47
|
+
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
48
|
+
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
49
|
+
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
50
|
+
var schema_1 = require("./schema");
|
|
51
|
+
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
52
|
+
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
53
|
+
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
54
|
+
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
55
|
+
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
56
|
+
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
57
|
+
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
58
|
+
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
59
|
+
var Parser = __importStar(require("./parser"));
|
|
60
|
+
exports.Parser = Parser;
|
|
61
61
|
//# sourceMappingURL=index.js.map
|