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.
@@ -1,4 +1,4 @@
1
- export declare type MySQLConfiguration = {
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 declare type Configuration = {
9
+ export type Configuration = {
10
10
  mysql: MySQLConfiguration;
11
11
  };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
3
+ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./MySQL/store"), exports);
@@ -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>(removeText: 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>(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;