Class

BaseDatabase

BaseDatabase()

Representation of an ORM database in AdminJS

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 21

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 29

Array.<BaseResource>