oak-db 3.3.9 → 3.3.11

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.
@@ -16,6 +16,7 @@ export declare class MysqlStore<ED extends EntityDict & BaseEntityDict, Cxt exte
16
16
  connector: MySqlConnector;
17
17
  translator: MySqlTranslator<ED>;
18
18
  constructor(storageSchema: StorageSchema<ED>, configuration: MySQLConfiguration);
19
+ checkRelationAsync<T extends keyof ED, Cxt extends AsyncContext<ED>>(entity: T, operation: Omit<ED[T]['Operation'] | ED[T]['Selection'], 'id'>, context: Cxt): Promise<void>;
19
20
  protected aggregateAbjointRowAsync<T extends keyof ED, OP extends SelectOption, Cxt extends AsyncContext<ED>>(entity: T, aggregation: ED[T]['Aggregation'], context: Cxt, option: OP): Promise<AggregationResult<ED[T]['Schema']>>;
20
21
  aggregate<T extends keyof ED, OP extends SelectOption>(entity: T, aggregation: ED[T]['Aggregation'], context: Cxt, option: OP): Promise<AggregationResult<ED[T]['Schema']>>;
21
22
  protected supportManyToOneJoin(): boolean;
@@ -44,6 +44,9 @@ class MysqlStore extends CascadeStore_1.CascadeStore {
44
44
  this.connector = new connector_1.MySqlConnector(configuration);
45
45
  this.translator = new translator_1.MySqlTranslator(storageSchema);
46
46
  }
47
+ checkRelationAsync(entity, operation, context) {
48
+ throw new Error('Method not implemented.');
49
+ }
47
50
  async aggregateAbjointRowAsync(entity, aggregation, context, option) {
48
51
  const sql = this.translator.translateAggregate(entity, aggregation, option);
49
52
  const result = await this.connector.exec(sql, context.getCurrentTxnId());