oak-db 3.0.1 → 3.0.2
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/lib/MySQL/connector.js +68 -75
- package/lib/MySQL/store.d.ts +1 -0
- package/lib/MySQL/store.js +131 -269
- package/lib/MySQL/translator.d.ts +1 -1
- package/lib/MySQL/translator.js +344 -359
- package/lib/MySQL/types/Configuration.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/sqlTranslator.d.ts +1 -1
- package/lib/sqlTranslator.js +359 -365
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MySQLConfiguration = {
|
|
2
2
|
host: string;
|
|
3
3
|
user: string;
|
|
4
4
|
password: string;
|
|
@@ -6,6 +6,6 @@ export declare type MySQLConfiguration = {
|
|
|
6
6
|
charset: 'utf8mb4_general_ci';
|
|
7
7
|
connectionLimit: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type Configuration = {
|
|
10
10
|
mysql: MySQLConfiguration;
|
|
11
11
|
};
|
package/lib/index.js
CHANGED
package/lib/sqlTranslator.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare abstract class SqlTranslator<ED extends EntityDict & BaseEntityDi
|
|
|
20
20
|
protected abstract translateObjectPredicate(predicate: Record<string, any>, alias: string, attr: string): string;
|
|
21
21
|
protected abstract populateSelectStmt<T extends keyof ED, OP extends SqlSelectOption>(projectionText: string, fromText: string, aliasDict: Record<string, string>, filterText: string, sorterText?: string, groupByText?: string, indexFrom?: number, count?: number, option?: OP, selection?: ED[T]['Selection'], aggregation?: ED[T]['Aggregation']): string;
|
|
22
22
|
protected abstract populateUpdateStmt<OP extends SqlOperateOption>(updateText: string, fromText: string, aliasDict: Record<string, string>, filterText: string, sorterText?: string, indexFrom?: number, count?: number, option?: OP): string;
|
|
23
|
-
protected abstract populateRemoveStmt<OP extends SqlOperateOption>(
|
|
23
|
+
protected abstract populateRemoveStmt<OP extends SqlOperateOption>(updateText: string, fromText: string, aliasDict: Record<string, string>, filterText: string, sorterText?: string, indexFrom?: number, count?: number, option?: OP): string;
|
|
24
24
|
protected abstract translateExpression<T extends keyof ED>(entity: T, alias: string, expression: RefOrExpression<keyof ED[T]['OpSchema']>, refDict: Record<string, [string, keyof ED]>): string;
|
|
25
25
|
private getStorageName;
|
|
26
26
|
translateInsert<T extends keyof ED>(entity: T, data: ED[T]['CreateMulti']['data']): string;
|