@mrnafisia/type-query 1.0.49 → 1.0.51
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 +28 -28
- package/dist/context.d.ts +987 -987
- package/dist/context.js +84 -84
- package/dist/dictionary.d.ts +12 -12
- package/dist/dictionary.js +179 -179
- package/dist/entity.d.ts +3585 -3585
- package/dist/entity.js +1053 -1053
- package/dist/error.d.ts +4 -4
- package/dist/error.js +7 -7
- package/dist/index.d.ts +18 -18
- package/dist/index.js +56 -56
- package/dist/model.d.ts +1005 -1005
- package/dist/model.js +282 -282
- package/dist/parser.d.ts +11 -11
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +123 -120
- package/dist/parser.js.map +1 -1
- package/dist/pool.d.ts +5 -5
- package/dist/pool.js +122 -122
- package/dist/schema.d.ts +25 -25
- package/dist/schema.js +405 -405
- package/dist/testUtil.d.ts +4 -4
- package/dist/testUtil.js +343 -343
- package/dist/types/context.d.ts +51 -51
- 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 +233 -233
- 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.js +220 -220
- package/package.json +40 -40
package/dist/error.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const PostgresErrors: {
|
|
2
|
-
readonly DATABASE_ALREADY_EXISTS: "42P04";
|
|
3
|
-
};
|
|
4
|
-
export { PostgresErrors };
|
|
1
|
+
declare const PostgresErrors: {
|
|
2
|
+
readonly DATABASE_ALREADY_EXISTS: "42P04";
|
|
3
|
+
};
|
|
4
|
+
export { PostgresErrors };
|
|
5
5
|
//# sourceMappingURL=error.d.ts.map
|
package/dist/error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostgresErrors = void 0;
|
|
4
|
-
var PostgresErrors = {
|
|
5
|
-
DATABASE_ALREADY_EXISTS: '42P04'
|
|
6
|
-
};
|
|
7
|
-
exports.PostgresErrors = PostgresErrors;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostgresErrors = void 0;
|
|
4
|
+
var PostgresErrors = {
|
|
5
|
+
DATABASE_ALREADY_EXISTS: '42P04'
|
|
6
|
+
};
|
|
7
|
+
exports.PostgresErrors = PostgresErrors;
|
|
8
8
|
//# sourceMappingURL=error.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { U } from './U';
|
|
2
|
-
export { PostgresErrors } from './error';
|
|
3
|
-
export type { Pool } from './types/pool';
|
|
4
|
-
export { createContext } from './context';
|
|
5
|
-
export { createModelUtils } from './model';
|
|
6
|
-
export type { Context } from './types/context';
|
|
7
|
-
export type { ClientBase, PoolClient } from 'pg';
|
|
8
|
-
export type { TestTableData } from './types/testUtil';
|
|
9
|
-
export type { Table, TableCheck } from './types/table';
|
|
10
|
-
export type { SimpleModel, Model } from './types/model';
|
|
11
|
-
export { createPool, addHook, removeHook } from './pool';
|
|
12
|
-
export { testTransaction, createTestTableData } from './testUtil';
|
|
13
|
-
export type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
14
|
-
export { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
15
|
-
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
16
|
-
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
17
|
-
export * as Parser from './parser';
|
|
18
|
-
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
1
|
+
export { U } from './U';
|
|
2
|
+
export { PostgresErrors } from './error';
|
|
3
|
+
export type { Pool } from './types/pool';
|
|
4
|
+
export { createContext } from './context';
|
|
5
|
+
export { createModelUtils } from './model';
|
|
6
|
+
export type { Context } from './types/context';
|
|
7
|
+
export type { ClientBase, PoolClient } from 'pg';
|
|
8
|
+
export type { TestTableData } from './types/testUtil';
|
|
9
|
+
export type { Table, TableCheck } from './types/table';
|
|
10
|
+
export type { SimpleModel, Model } from './types/model';
|
|
11
|
+
export { createPool, addHook, removeHook } from './pool';
|
|
12
|
+
export { testTransaction, createTestTableData } from './testUtil';
|
|
13
|
+
export type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
14
|
+
export { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
15
|
+
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
16
|
+
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
17
|
+
export * as Parser from './parser';
|
|
18
|
+
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
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;
|
|
27
|
-
var U_1 = require("./U");
|
|
28
|
-
Object.defineProperty(exports, "U", { enumerable: true, get: function () { return U_1.U; } });
|
|
29
|
-
var error_1 = require("./error");
|
|
30
|
-
Object.defineProperty(exports, "PostgresErrors", { enumerable: true, get: function () { return error_1.PostgresErrors; } });
|
|
31
|
-
var context_1 = require("./context");
|
|
32
|
-
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
33
|
-
var model_1 = require("./model");
|
|
34
|
-
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
35
|
-
var pool_1 = require("./pool");
|
|
36
|
-
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
37
|
-
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
38
|
-
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
39
|
-
var testUtil_1 = require("./testUtil");
|
|
40
|
-
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
41
|
-
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
42
|
-
var entity_1 = require("./entity");
|
|
43
|
-
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
44
|
-
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
45
|
-
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
46
|
-
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
47
|
-
var schema_1 = require("./schema");
|
|
48
|
-
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
49
|
-
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
50
|
-
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
51
|
-
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
52
|
-
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
53
|
-
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
54
|
-
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
55
|
-
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
56
|
-
exports.Parser = __importStar(require("./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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
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;
|
|
27
|
+
var U_1 = require("./U");
|
|
28
|
+
Object.defineProperty(exports, "U", { enumerable: true, get: function () { return U_1.U; } });
|
|
29
|
+
var error_1 = require("./error");
|
|
30
|
+
Object.defineProperty(exports, "PostgresErrors", { enumerable: true, get: function () { return error_1.PostgresErrors; } });
|
|
31
|
+
var context_1 = require("./context");
|
|
32
|
+
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
33
|
+
var model_1 = require("./model");
|
|
34
|
+
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
35
|
+
var pool_1 = require("./pool");
|
|
36
|
+
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
37
|
+
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
38
|
+
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
39
|
+
var testUtil_1 = require("./testUtil");
|
|
40
|
+
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
41
|
+
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
42
|
+
var entity_1 = require("./entity");
|
|
43
|
+
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
44
|
+
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
45
|
+
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
46
|
+
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
47
|
+
var schema_1 = require("./schema");
|
|
48
|
+
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
49
|
+
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
50
|
+
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
51
|
+
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
52
|
+
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
53
|
+
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
54
|
+
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
55
|
+
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
56
|
+
exports.Parser = __importStar(require("./parser"));
|
|
57
57
|
//# sourceMappingURL=index.js.map
|