Skip to content

Commit

Permalink
feat(tabstractdatabase): extend tabstractdatabase with tabstractobjec…
Browse files Browse the repository at this point in the history
…t and allow to use logger
  • Loading branch information
Itee committed Jul 2, 2021
1 parent fca0d3a commit 16115d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
},
"peerDependencies": {
"itee-utils": "^5.2.0",
"itee-validators": "^5.2.0"
"itee-validators": "^5.2.0",
"itee-core": "^1.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
Expand Down
6 changes: 4 additions & 2 deletions sources/databases/TAbstractDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import {
isNull,
isUndefined
} from 'itee-validators'
import { TAbstractObject } from 'itee-core'
import path from 'path'
import { TAbstractDatabasePlugin } from '../plugins/TAbstractDatabasePlugin'

class TAbstractDatabase {
class TAbstractDatabase extends TAbstractObject {

constructor ( parameters = {} ) {

Expand All @@ -30,11 +31,12 @@ class TAbstractDatabase {
...parameters
}

super( _parameters )

this.driver = _parameters.driver
this.application = _parameters.application
this.router = _parameters.router
this.plugins = _parameters.plugins

}

get plugins () {
Expand Down

0 comments on commit 16115d9

Please sign in to comment.