Merge pull request #1844 from khlilturki97/add_attribute_to_datasource

Add definition attribute to datasource
This commit is contained in:
Miroslav Bajtoš 2020-07-27 10:08:54 +02:00 committed by GitHub
commit b9929b83fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import {
ModelBaseClass, ModelBaseClass,
ModelBuilder, ModelBuilder,
ModelDefinition, ModelDefinition,
PropertyDefinition, PropertyDefinition
} from './model'; } from './model';
import {EventEmitter} from 'events'; import {EventEmitter} from 'events';
import {IsolationLevel, Transaction} from './transaction-mixin'; import {IsolationLevel, Transaction} from './transaction-mixin';
@ -84,6 +84,8 @@ export declare class DataSource extends EventEmitter {
connector?: Connector; connector?: Connector;
definitions: {[modelName: string]: ModelDefinition};
DataAccessObject: AnyObject & {prototype: AnyObject}; DataAccessObject: AnyObject & {prototype: AnyObject};
constructor(name: string, settings?: Options, modelBuilder?: ModelBuilder); constructor(name: string, settings?: Options, modelBuilder?: ModelBuilder);