Class

BaseDatabase

BaseDatabase()

Representation of an ORM database in AdminJS

Constructor

# new BaseDatabase()

graph LR

A[BaseDatabase] -->|has many| B(BaseResource) B --> |has many|C(BaseRecord) B --> |has many|D(BaseProperty)

View Source adminjs/src/backend/adapters/database/base-database.ts, line 13

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

View Source adminjs/src/backend/adapters/database/base-database.ts, line 45

if given adapter supports this database - returns true

Boolean

# resources() → {Array.<BaseResource>}

returns array of all resources (collections/tables) in the database

View Source adminjs/src/backend/adapters/database/base-database.ts, line 52

Array.<BaseResource>