Constructor
# new BaseDatabase()
graph LR
A[BaseDatabase] -->|has many| B(BaseResource) B --> |has many|C(BaseRecord) B --> |has many|D(BaseProperty)
Methods
# static isAdapterFor(database) → {Boolean}
Checks if given adapter supports database provided by user
Parameters:
Name | Type | Description |
---|---|---|
database |
any
|
database provided in AdminJSOptions#databases array |
if given adapter supports this database - returns true
Boolean
# resources() → {Array.<BaseResource>}
returns array of all resources (collections/tables) in the database
Array.<BaseResource>