@berish/orm
Advanced tools
Comparing version 0.7.2 to 0.8.0
@@ -48,3 +48,3 @@ import { CacheEmitter } from '@berish/emitter'; | ||
*/ | ||
initDbAdapter<T extends new () => BaseDBAdapter<any>>(dbAdapter: T, params: InstanceType<T>['params']): Promise<void>; | ||
initDbAdapter<T extends BaseDBAdapter<any>>(dbAdapter: T, params: T['params']): Promise<void>; | ||
/** | ||
@@ -55,3 +55,3 @@ * Инициализация File Adapter для работы с базой данных | ||
*/ | ||
initFileAdapter<T extends new () => BaseFileAdapter<any>>(fileAdapter: T, params: InstanceType<T>['params']): Promise<void>; | ||
initFileAdapter<T extends BaseFileAdapter<any>>(fileAdapter: T, params: T['params']): Promise<void>; | ||
closeDbAdapter(): Promise<void>; | ||
@@ -58,0 +58,0 @@ closeFileAdapter(): Promise<void>; |
@@ -140,3 +140,3 @@ "use strict"; | ||
throw new Error(`dbAdapter is undefined`); | ||
this._dbAdapter = new dbAdapter(); | ||
this._dbAdapter = dbAdapter; | ||
yield this._dbAdapter.initialize(params); | ||
@@ -154,3 +154,3 @@ }); | ||
throw new Error(`fileAdapter is undefined`); | ||
this._fileAdapter = new fileAdapter(); | ||
this._fileAdapter = fileAdapter; | ||
yield this._fileAdapter.initialize(params); | ||
@@ -157,0 +157,0 @@ }); |
{ | ||
"name": "@berish/orm", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228804