UNPKG

@nikitajs/db

Version:

Provides Nikita actions for various database operations. Currently supports PostgreSQL, MySQL and MariaDB.

18 lines (13 loc) 326 B
# `nikita.db.schema.list` List the PostgreSQL schemas of a database. ## Create Schema example ```js const {schemas} = await nikita.db.schema.list({ admin_username: 'test', admin_password: 'test', database: 'my_db' }) schemas.map( ({name, owner}) => { console.info(`Schema is ${name} and owner is ${owner}`) }) ```