Class

BaseDatabase

BaseDatabase()

Representation of an ORM database in AdminBro

Methods

# static isAdapterFor(database) → {Boolean}

Checks if given adapter supports database provided by user

Parameters:
Name Type Description
database any

database provided in AdminBroOptions#databases array

View Source admin-bro/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 admin-bro/src/backend/adapters/database/base-database.ts, line 29

Array.<BaseResource>
SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers