@mrnafisia/type-query 1.0.26 → 1.0.29
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 +5 -5
- package/dist/context.js +85 -85
- package/dist/dictionary.d.ts +12 -12
- package/dist/dictionary.js +173 -173
- package/dist/entity.d.ts +3306 -3306
- package/dist/entity.js +960 -960
- package/dist/error.d.ts +4 -4
- package/dist/error.js +6 -6
- package/dist/index.d.ts +32 -32
- package/dist/index.js +35 -35
- package/dist/model.d.ts +991 -991
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +355 -293
- package/dist/model.js.map +1 -1
- package/dist/pool.d.ts +5 -5
- package/dist/pool.d.ts.map +1 -1
- package/dist/pool.js +120 -120
- package/dist/pool.js.map +1 -1
- package/dist/schema.d.ts +25 -25
- package/dist/schema.js +395 -395
- package/dist/testUtil.d.ts +4 -4
- package/dist/testUtil.js +330 -330
- package/dist/types/context.d.ts +55 -55
- 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.d.ts.map +1 -1
- package/dist/types/model.js +2 -2
- package/dist/types/pool.d.ts +18 -17
- package/dist/types/pool.d.ts.map +1 -1
- 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.js +216 -216
- 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,33 +1,33 @@
|
|
|
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 type { TestTableData } from './types/testUtil';
|
|
9
|
-
import type { SimpleModel, Model } from './types/model';
|
|
10
|
-
import { createPool, addHook, removeHook } from './pool';
|
|
11
|
-
import { testTransaction, createTestTableData } from './testUtil';
|
|
12
|
-
import type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
13
|
-
import { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
14
|
-
import type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
15
|
-
import { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
16
|
-
import type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
17
|
-
export type { Pool };
|
|
18
|
-
export type { Context };
|
|
19
|
-
export type { ClientBase, PoolClient };
|
|
20
|
-
export type { TestTableData };
|
|
21
|
-
export type { SimpleModel, Model };
|
|
22
|
-
export type { JSON, JsonObject, JsonArray, BaseJsonValue };
|
|
23
|
-
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable };
|
|
24
|
-
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery };
|
|
25
|
-
export { U };
|
|
26
|
-
export { PostgresErrors };
|
|
27
|
-
export { createContext };
|
|
28
|
-
export { createModelUtils };
|
|
29
|
-
export { createPool, addHook, removeHook };
|
|
30
|
-
export { testTransaction, createTestTableData };
|
|
31
|
-
export { createEntity, resolveResult, resolveReturning, resolveExpression };
|
|
32
|
-
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
|
|
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 type { TestTableData } from './types/testUtil';
|
|
9
|
+
import type { SimpleModel, Model } from './types/model';
|
|
10
|
+
import { createPool, addHook, removeHook } from './pool';
|
|
11
|
+
import { testTransaction, createTestTableData } from './testUtil';
|
|
12
|
+
import type { JSON, JsonObject, JsonArray, BaseJsonValue } from './types/json';
|
|
13
|
+
import { createEntity, resolveResult, resolveReturning, resolveExpression } from './entity';
|
|
14
|
+
import type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable } from './types/postgres';
|
|
15
|
+
import { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName } from './schema';
|
|
16
|
+
import type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery } from './types/entity';
|
|
17
|
+
export type { Pool };
|
|
18
|
+
export type { Context };
|
|
19
|
+
export type { ClientBase, PoolClient };
|
|
20
|
+
export type { TestTableData };
|
|
21
|
+
export type { SimpleModel, Model };
|
|
22
|
+
export type { JSON, JsonObject, JsonArray, BaseJsonValue };
|
|
23
|
+
export type { OrderDirection, PostgresType, PostgresTypeMapper, ColumnTypeByColumns, ColumnTypeByTable };
|
|
24
|
+
export type { JoinType, Param, QueryData, TableWithAlias, JoinData, Mode, CustomColumn, ExpressionTypes, Expression, ValueExpression, QueryExpression, InsertValue, UpdateSets, Query, QueryResult, QueryResultRow, PartialQuery };
|
|
25
|
+
export { U };
|
|
26
|
+
export { PostgresErrors };
|
|
27
|
+
export { createContext };
|
|
28
|
+
export { createModelUtils };
|
|
29
|
+
export { createPool, addHook, removeHook };
|
|
30
|
+
export { testTransaction, createTestTableData };
|
|
31
|
+
export { createEntity, resolveResult, resolveReturning, resolveExpression };
|
|
32
|
+
export { createTables, dropTables, resolveTablesDependency, createSequencesSQL, dropSequencesSQL, createTableSQL, dropTableSQL, getSequenceName };
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
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;
|
|
7
|
-
var U_1 = __importDefault(require("./U"));
|
|
8
|
-
exports.U = U_1.default;
|
|
9
|
-
var error_1 = __importDefault(require("./error"));
|
|
10
|
-
exports.PostgresErrors = error_1.default;
|
|
11
|
-
var context_1 = require("./context");
|
|
12
|
-
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
13
|
-
var model_1 = require("./model");
|
|
14
|
-
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
15
|
-
var pool_1 = require("./pool");
|
|
16
|
-
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
17
|
-
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
18
|
-
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
19
|
-
var testUtil_1 = require("./testUtil");
|
|
20
|
-
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
21
|
-
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
22
|
-
var entity_1 = require("./entity");
|
|
23
|
-
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
24
|
-
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
25
|
-
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
26
|
-
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
27
|
-
var schema_1 = require("./schema");
|
|
28
|
-
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
29
|
-
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
30
|
-
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
31
|
-
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
32
|
-
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
33
|
-
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
34
|
-
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
35
|
-
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
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;
|
|
7
|
+
var U_1 = __importDefault(require("./U"));
|
|
8
|
+
exports.U = U_1.default;
|
|
9
|
+
var error_1 = __importDefault(require("./error"));
|
|
10
|
+
exports.PostgresErrors = error_1.default;
|
|
11
|
+
var context_1 = require("./context");
|
|
12
|
+
Object.defineProperty(exports, "createContext", { enumerable: true, get: function () { return context_1.createContext; } });
|
|
13
|
+
var model_1 = require("./model");
|
|
14
|
+
Object.defineProperty(exports, "createModelUtils", { enumerable: true, get: function () { return model_1.createModelUtils; } });
|
|
15
|
+
var pool_1 = require("./pool");
|
|
16
|
+
Object.defineProperty(exports, "createPool", { enumerable: true, get: function () { return pool_1.createPool; } });
|
|
17
|
+
Object.defineProperty(exports, "addHook", { enumerable: true, get: function () { return pool_1.addHook; } });
|
|
18
|
+
Object.defineProperty(exports, "removeHook", { enumerable: true, get: function () { return pool_1.removeHook; } });
|
|
19
|
+
var testUtil_1 = require("./testUtil");
|
|
20
|
+
Object.defineProperty(exports, "testTransaction", { enumerable: true, get: function () { return testUtil_1.testTransaction; } });
|
|
21
|
+
Object.defineProperty(exports, "createTestTableData", { enumerable: true, get: function () { return testUtil_1.createTestTableData; } });
|
|
22
|
+
var entity_1 = require("./entity");
|
|
23
|
+
Object.defineProperty(exports, "createEntity", { enumerable: true, get: function () { return entity_1.createEntity; } });
|
|
24
|
+
Object.defineProperty(exports, "resolveResult", { enumerable: true, get: function () { return entity_1.resolveResult; } });
|
|
25
|
+
Object.defineProperty(exports, "resolveReturning", { enumerable: true, get: function () { return entity_1.resolveReturning; } });
|
|
26
|
+
Object.defineProperty(exports, "resolveExpression", { enumerable: true, get: function () { return entity_1.resolveExpression; } });
|
|
27
|
+
var schema_1 = require("./schema");
|
|
28
|
+
Object.defineProperty(exports, "createTables", { enumerable: true, get: function () { return schema_1.createTables; } });
|
|
29
|
+
Object.defineProperty(exports, "dropTables", { enumerable: true, get: function () { return schema_1.dropTables; } });
|
|
30
|
+
Object.defineProperty(exports, "resolveTablesDependency", { enumerable: true, get: function () { return schema_1.resolveTablesDependency; } });
|
|
31
|
+
Object.defineProperty(exports, "createSequencesSQL", { enumerable: true, get: function () { return schema_1.createSequencesSQL; } });
|
|
32
|
+
Object.defineProperty(exports, "dropSequencesSQL", { enumerable: true, get: function () { return schema_1.dropSequencesSQL; } });
|
|
33
|
+
Object.defineProperty(exports, "createTableSQL", { enumerable: true, get: function () { return schema_1.createTableSQL; } });
|
|
34
|
+
Object.defineProperty(exports, "dropTableSQL", { enumerable: true, get: function () { return schema_1.dropTableSQL; } });
|
|
35
|
+
Object.defineProperty(exports, "getSequenceName", { enumerable: true, get: function () { return schema_1.getSequenceName; } });
|
|
36
36
|
//# sourceMappingURL=index.js.map
|