@statechannels/server-wallet > DBAdmin

DBAdmin class

A collection of static utility methods for db admin

Signature:

export declare class DBAdmin

Methods

MethodModifiersDescription
createDatabase(config)staticCreates a database based on the database specified in the wallet configuration
createDatabaseFromKnex(knex)staticCreates the database specified by the knex instance connection info
dropDatabase(config)staticDrops the database based on the database specified in the wallet configuration
dropDatabaseFromKnex(knex)staticDrops the database specified by the knex instance connection info
migrateDatabase(config)staticPerforms wallet database migrations against the database specified in the config
migrateDatabaseFromKnex(knex)staticPerforms wallet database migrations for the database specified by the knex instance connection info
truncateDatabase(config, tables)staticTruncates data from all the specified tables
truncateDataBaseFromKnex(knex, tables)staticTruncates data from all the specified tables