@webiny/db 0.0.0-mt-3 → 0.0.0-unstable.40876133bb
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/index.d.ts +20 -15
- package/index.js +24 -29
- package/index.js.map +1 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* TODO Remove when moved all packages to standalone storage opts.
|
|
3
|
+
*/
|
|
4
|
+
interface KeyField {
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Key {
|
|
2
8
|
primary?: boolean;
|
|
3
9
|
unique?: boolean;
|
|
4
10
|
name: string;
|
|
5
|
-
fields:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
11
|
+
fields: KeyField[];
|
|
12
|
+
}
|
|
13
|
+
export interface ArgsBatch {
|
|
14
|
+
instance: Batch;
|
|
15
|
+
operation: Operation;
|
|
16
|
+
}
|
|
17
|
+
export interface Args {
|
|
18
|
+
__batch?: ArgsBatch;
|
|
14
19
|
table?: string;
|
|
15
20
|
meta?: boolean;
|
|
16
21
|
limit?: number;
|
|
@@ -18,7 +23,7 @@ export declare type Args = {
|
|
|
18
23
|
data?: Record<string, any>;
|
|
19
24
|
query?: Record<string, any>;
|
|
20
25
|
keys?: Key[];
|
|
21
|
-
}
|
|
26
|
+
}
|
|
22
27
|
export declare type Result<T = any> = [T, Record<string, any>];
|
|
23
28
|
export interface DbDriver {
|
|
24
29
|
create: (args: Args) => Promise<Result<true>>;
|
|
@@ -51,9 +56,9 @@ declare class Db {
|
|
|
51
56
|
read<T = Record<string, any>>(args: Args): Promise<Result<T[]>>;
|
|
52
57
|
update(args: Args): Promise<Result<true>>;
|
|
53
58
|
delete(args: Args): Promise<Result<true>>;
|
|
54
|
-
createLog(operation:
|
|
55
|
-
readLogs<T = Record<string, any>>(): Promise<Result<T[]
|
|
56
|
-
batch<T0 = any, T1 = any, T2 = any, T3 = any, T4 = any, T5 = any, T6 = any, T7 = any, T8 = any, T9 = any>(): Batch
|
|
59
|
+
createLog(operation: string, args: Args): Promise<Result<true> | null>;
|
|
60
|
+
readLogs<T = Record<string, any>>(): Promise<Result<T[]> | null>;
|
|
61
|
+
batch<T0 = any, T1 = any, T2 = any, T3 = any, T4 = any, T5 = any, T6 = any, T7 = any, T8 = any, T9 = any>(): Batch;
|
|
57
62
|
}
|
|
58
63
|
declare class Batch<T0 = any, T1 = any, T2 = any, T3 = any, T4 = any, T5 = any, T6 = any, T7 = any, T8 = any, T9 = any> {
|
|
59
64
|
db: Db;
|
|
@@ -61,7 +66,7 @@ declare class Batch<T0 = any, T1 = any, T2 = any, T3 = any, T4 = any, T5 = any,
|
|
|
61
66
|
id: string;
|
|
62
67
|
meta: Record<string, any>;
|
|
63
68
|
operations: Operation[];
|
|
64
|
-
constructor(db:
|
|
69
|
+
constructor(db: Db);
|
|
65
70
|
push(...operations: Operation[]): this;
|
|
66
71
|
create(...args: Args[]): this;
|
|
67
72
|
read(...args: Args[]): this;
|
package/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.Db = exports.Batch = void 0;
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
13
|
|
|
14
|
+
/**
|
|
15
|
+
* TODO Remove when moved all packages to standalone storage opts.
|
|
16
|
+
*/
|
|
16
17
|
// Generates a short and sortable ID, e.g. "1607677774994.tfz58m".
|
|
17
18
|
const shortId = () => {
|
|
18
19
|
const time = new Date().getTime();
|
|
19
20
|
const uniqueId = Math.random().toString(36).slice(-6);
|
|
20
21
|
return `${time}.${uniqueId}`;
|
|
21
|
-
};
|
|
22
|
-
|
|
22
|
+
};
|
|
23
23
|
|
|
24
|
+
// Picks necessary data from received args, ready to be stored in the log table.
|
|
24
25
|
const getCreateLogData = args => {
|
|
25
26
|
const {
|
|
26
27
|
table,
|
|
@@ -31,7 +32,7 @@ const getCreateLogData = args => {
|
|
|
31
32
|
query,
|
|
32
33
|
keys
|
|
33
34
|
} = args;
|
|
34
|
-
|
|
35
|
+
return {
|
|
35
36
|
table,
|
|
36
37
|
meta,
|
|
37
38
|
limit,
|
|
@@ -39,17 +40,11 @@ const getCreateLogData = args => {
|
|
|
39
40
|
data,
|
|
40
41
|
query,
|
|
41
42
|
keys,
|
|
42
|
-
batch:
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
if (args.__batch) {
|
|
46
|
-
logData.batch = {
|
|
43
|
+
batch: args.__batch ? {
|
|
47
44
|
id: args.__batch.instance.id,
|
|
48
45
|
type: args.__batch.instance.type
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return logData;
|
|
46
|
+
} : null
|
|
47
|
+
};
|
|
53
48
|
};
|
|
54
49
|
|
|
55
50
|
class Db {
|
|
@@ -61,43 +56,40 @@ class Db {
|
|
|
61
56
|
(0, _defineProperty2.default)(this, "driver", void 0);
|
|
62
57
|
(0, _defineProperty2.default)(this, "table", void 0);
|
|
63
58
|
(0, _defineProperty2.default)(this, "logTable", void 0);
|
|
64
|
-
this.driver = driver;
|
|
59
|
+
this.driver = driver; // @ts-ignore
|
|
60
|
+
|
|
65
61
|
this.table = table;
|
|
66
62
|
this.logTable = logTable;
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
async create(args) {
|
|
70
|
-
const createArgs =
|
|
66
|
+
const createArgs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, args), {}, {
|
|
71
67
|
table: args.table || this.table
|
|
72
68
|
});
|
|
73
|
-
|
|
74
69
|
await this.createLog("create", createArgs);
|
|
75
70
|
return this.driver.create(createArgs);
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
async read(args) {
|
|
79
|
-
const readArgs =
|
|
74
|
+
const readArgs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, args), {}, {
|
|
80
75
|
table: args.table || this.table
|
|
81
76
|
});
|
|
82
|
-
|
|
83
77
|
await this.createLog("read", readArgs);
|
|
84
78
|
return this.driver.read(readArgs);
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
async update(args) {
|
|
88
|
-
const updateArgs =
|
|
82
|
+
const updateArgs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, args), {}, {
|
|
89
83
|
table: args.table || this.table
|
|
90
84
|
});
|
|
91
|
-
|
|
92
85
|
await this.createLog("update", updateArgs);
|
|
93
86
|
return this.driver.update(updateArgs);
|
|
94
87
|
}
|
|
95
88
|
|
|
96
89
|
async delete(args) {
|
|
97
|
-
const deleteArgs =
|
|
90
|
+
const deleteArgs = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, args), {}, {
|
|
98
91
|
table: args.table || this.table
|
|
99
92
|
});
|
|
100
|
-
|
|
101
93
|
await this.createLog("delete", deleteArgs);
|
|
102
94
|
return this.driver.delete(deleteArgs);
|
|
103
95
|
} // Logging functions.
|
|
@@ -105,7 +97,7 @@ class Db {
|
|
|
105
97
|
|
|
106
98
|
async createLog(operation, args) {
|
|
107
99
|
if (!this.logTable) {
|
|
108
|
-
return;
|
|
100
|
+
return null;
|
|
109
101
|
}
|
|
110
102
|
|
|
111
103
|
const data = getCreateLogData(args);
|
|
@@ -119,7 +111,7 @@ class Db {
|
|
|
119
111
|
|
|
120
112
|
async readLogs() {
|
|
121
113
|
if (!this.logTable) {
|
|
122
|
-
return;
|
|
114
|
+
return null;
|
|
123
115
|
}
|
|
124
116
|
|
|
125
117
|
return this.driver.readLogs({
|
|
@@ -191,11 +183,14 @@ class Batch {
|
|
|
191
183
|
}
|
|
192
184
|
|
|
193
185
|
async execute() {
|
|
186
|
+
/**
|
|
187
|
+
* TODO: figure out which exact type to use instead of any.
|
|
188
|
+
*/
|
|
194
189
|
const promises = [];
|
|
195
190
|
|
|
196
191
|
for (let i = 0; i < this.operations.length; i++) {
|
|
197
192
|
const [operation, args] = this.operations[i];
|
|
198
|
-
promises.push(this.db[operation](
|
|
193
|
+
promises.push(this.db[operation]((0, _objectSpread2.default)((0, _objectSpread2.default)({}, args), {}, {
|
|
199
194
|
__batch: {
|
|
200
195
|
instance: this,
|
|
201
196
|
operation: this.operations[i]
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["shortId","time","Date","getTime","uniqueId","Math","random","toString","slice","getCreateLogData","args","table","meta","limit","sort","data","query","keys","batch","__batch","id","instance","type","Db","constructor","driver","logTable","create","createArgs","createLog","read","readArgs","update","updateArgs","delete","deleteArgs","operation","readLogs","Batch","db","operations","push","i","length","item","execute","promises","result","Promise","all"],"sources":["index.ts"],"sourcesContent":["/**\n * TODO Remove when moved all packages to standalone storage opts.\n */\ninterface KeyField {\n name: string;\n}\n\nexport interface Key {\n primary?: boolean;\n unique?: boolean;\n name: string;\n fields: KeyField[];\n}\n\nexport interface ArgsBatch {\n instance: Batch;\n operation: Operation;\n}\nexport interface Args {\n __batch?: ArgsBatch;\n table?: string;\n meta?: boolean;\n limit?: number;\n sort?: Record<string, 1 | -1>;\n data?: Record<string, any>;\n query?: Record<string, any>;\n keys?: Key[];\n}\n\nexport type Result<T = any> = [T, Record<string, any>];\n\nexport interface DbDriver {\n create: (args: Args) => Promise<Result<true>>;\n read: <T = Record<string, any>>(args: Args) => Promise<Result<T[]>>;\n update: (args: Args) => Promise<Result<true>>;\n delete: (args: Args) => Promise<Result<true>>;\n\n // Logging functions.\n createLog: (args: {\n operation: string;\n data: Args;\n table: string;\n id: string;\n }) => Promise<Result<true>>;\n readLogs: <T = Record<string, any>>(args: { table: string }) => Promise<Result<T[]>>;\n}\n\nexport type OperationType = \"create\" | \"read\" | \"update\" | \"delete\";\nexport type Operation = [OperationType, Args];\n\nexport type ConstructorArgs = {\n driver: DbDriver;\n table?: string;\n logTable?: string;\n};\n\n// Generates a short and sortable ID, e.g. \"1607677774994.tfz58m\".\nconst shortId = () => {\n const time = new Date().getTime();\n const uniqueId = Math.random().toString(36).slice(-6);\n\n return `${time}.${uniqueId}`;\n};\n\ninterface LogDataBatch {\n id: string;\n type: string;\n}\ninterface LogData\n extends Pick<Args, \"table\" | \"meta\" | \"limit\" | \"sort\" | \"data\" | \"query\" | \"keys\"> {\n batch: LogDataBatch | null;\n}\n\n// Picks necessary data from received args, ready to be stored in the log table.\nconst getCreateLogData = (args: Args): LogData => {\n const { table, meta, limit, sort, data, query, keys } = args;\n\n return {\n table,\n meta,\n limit,\n sort,\n data,\n query,\n keys,\n batch: args.__batch\n ? {\n id: args.__batch.instance.id,\n type: args.__batch.instance.type\n }\n : null\n };\n};\n\nclass Db {\n public driver: DbDriver;\n public table: string;\n public logTable?: string;\n\n constructor({ driver, table, logTable }: ConstructorArgs) {\n this.driver = driver;\n // @ts-ignore\n this.table = table;\n this.logTable = logTable;\n }\n\n public async create(args: Args): Promise<Result<true>> {\n const createArgs = { ...args, table: args.table || this.table };\n await this.createLog(\"create\", createArgs);\n return this.driver.create(createArgs);\n }\n\n public async read<T = Record<string, any>>(args: Args): Promise<Result<T[]>> {\n const readArgs = { ...args, table: args.table || this.table };\n await this.createLog(\"read\", readArgs);\n return this.driver.read(readArgs);\n }\n\n public async update(args: Args): Promise<Result<true>> {\n const updateArgs = { ...args, table: args.table || this.table };\n await this.createLog(\"update\", updateArgs);\n return this.driver.update(updateArgs);\n }\n\n public async delete(args: Args): Promise<Result<true>> {\n const deleteArgs = { ...args, table: args.table || this.table };\n await this.createLog(\"delete\", deleteArgs);\n return this.driver.delete(deleteArgs);\n }\n\n // Logging functions.\n public async createLog(operation: string, args: Args): Promise<Result<true> | null> {\n if (!this.logTable) {\n return null;\n }\n\n const data = getCreateLogData(args);\n return this.driver.createLog({ operation, data, table: this.logTable, id: shortId() });\n }\n\n public async readLogs<T = Record<string, any>>(): Promise<Result<T[]> | null> {\n if (!this.logTable) {\n return null;\n }\n\n return this.driver.readLogs({\n table: this.logTable\n });\n }\n\n public batch<\n T0 = any,\n T1 = any,\n T2 = any,\n T3 = any,\n T4 = any,\n T5 = any,\n T6 = any,\n T7 = any,\n T8 = any,\n T9 = any\n >(): Batch {\n return new Batch<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this);\n }\n}\n\nclass Batch<\n T0 = any,\n T1 = any,\n T2 = any,\n T3 = any,\n T4 = any,\n T5 = any,\n T6 = any,\n T7 = any,\n T8 = any,\n T9 = any\n> {\n db: Db;\n type: \"batch\" | \"transaction\";\n id: string;\n meta: Record<string, any>;\n operations: Operation[];\n\n constructor(db: Db) {\n this.db = db;\n this.type = \"batch\";\n this.id = shortId();\n\n this.meta = {};\n this.operations = [];\n }\n\n push(...operations: Operation[]) {\n for (let i = 0; i < operations.length; i++) {\n const item = operations[i];\n this.operations.push(item);\n }\n return this;\n }\n\n create(...args: Args[]) {\n for (let i = 0; i < args.length; i++) {\n this.push([\"create\", args[i]]);\n }\n return this;\n }\n\n read(...args: Args[]) {\n for (let i = 0; i < args.length; i++) {\n this.push([\"read\", args[i]]);\n }\n return this;\n }\n\n update(...args: Args[]) {\n for (let i = 0; i < args.length; i++) {\n this.push([\"update\", args[i]]);\n }\n return this;\n }\n\n delete(...args: Args[]) {\n for (let i = 0; i < args.length; i++) {\n this.push([\"delete\", args[i]]);\n }\n return this;\n }\n\n async execute(): Promise<[T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?]> {\n /**\n * TODO: figure out which exact type to use instead of any.\n */\n const promises: Promise<any>[] = [];\n for (let i = 0; i < this.operations.length; i++) {\n const [operation, args] = this.operations[i];\n promises.push(\n this.db[operation]({\n ...args,\n __batch: {\n instance: this,\n operation: this.operations[i]\n }\n })\n );\n }\n\n const result = Promise.all(promises);\n\n return result as Promise<[T0?, T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?]>;\n }\n}\n\nexport { Batch, Db };\n"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AAsDA;AACA,MAAMA,OAAO,GAAG,MAAM;EAClB,MAAMC,IAAI,GAAG,IAAIC,IAAJ,GAAWC,OAAX,EAAb;EACA,MAAMC,QAAQ,GAAGC,IAAI,CAACC,MAAL,GAAcC,QAAd,CAAuB,EAAvB,EAA2BC,KAA3B,CAAiC,CAAC,CAAlC,CAAjB;EAEA,OAAQ,GAAEP,IAAK,IAAGG,QAAS,EAA3B;AACH,CALD;;AAgBA;AACA,MAAMK,gBAAgB,GAAIC,IAAD,IAAyB;EAC9C,MAAM;IAAEC,KAAF;IAASC,IAAT;IAAeC,KAAf;IAAsBC,IAAtB;IAA4BC,IAA5B;IAAkCC,KAAlC;IAAyCC;EAAzC,IAAkDP,IAAxD;EAEA,OAAO;IACHC,KADG;IAEHC,IAFG;IAGHC,KAHG;IAIHC,IAJG;IAKHC,IALG;IAMHC,KANG;IAOHC,IAPG;IAQHC,KAAK,EAAER,IAAI,CAACS,OAAL,GACD;MACIC,EAAE,EAAEV,IAAI,CAACS,OAAL,CAAaE,QAAb,CAAsBD,EAD9B;MAEIE,IAAI,EAAEZ,IAAI,CAACS,OAAL,CAAaE,QAAb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KF,UAAL,CAAgBG,MAApC,EAA4CD,CAAC,EAA7C,EAAiD;MAC7C,MAAM,CAACN,SAAD,EAAY1B,IAAZ,IAAoB,KAAK8B,UAAL,CAAgBE,CAAhB,CAA1B;MACAI,QAAQ,CAACL,IAAT,CACI,KAAKF,EAAL,CAAQH,SAAR,8DACO1B,IADP;QAEIS,OAAO,EAAE;UACLE,QAAQ,EAAE,IADL;UAELe,SAAS,EAAE,KAAKI,UAAL,CAAgBE,CAAhB;QAFN;MAFb,GADJ;IASH;;IAED,MAAMK,MAAM,GAAGC,OAAO,CAACC,GAAR,CAAYH,QAAZ,CAAf;IAEA,OAAOC,MAAP;EACH;;AAzEH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/db",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-unstable.40876133bb",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"directory": "dist"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@babel/cli": "^7.
|
|
17
|
-
"@babel/core": "^7.
|
|
18
|
-
"@webiny/cli": "^0.0.0-
|
|
19
|
-
"@webiny/project-utils": "^0.0.0-
|
|
16
|
+
"@babel/cli": "^7.19.3",
|
|
17
|
+
"@babel/core": "^7.19.3",
|
|
18
|
+
"@webiny/cli": "^0.0.0-unstable.40876133bb",
|
|
19
|
+
"@webiny/project-utils": "^0.0.0-unstable.40876133bb",
|
|
20
20
|
"rimraf": "^3.0.2",
|
|
21
|
-
"typescript": "
|
|
21
|
+
"typescript": "4.7.4"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "yarn webiny run build",
|
|
25
25
|
"watch": "yarn webiny run watch"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f33811072795d25c5787ae39808e75e3312fb247"
|
|
28
28
|
}
|