breeze-sequelize
Version:
Breeze Sequelize server implementation
14 lines (13 loc) • 538 B
TypeScript
import { Options } from "sequelize";
/** Config for connecting to a database */
export interface DbConfig {
dbName: string;
user: string;
password: string;
}
/** Connect to existing database.
* @returns Promise<"success"> or throws an error */
export declare function connect(dbConfig: DbConfig, sequelizeOptions: Options): Promise<string>;
/** Create new database.
* @returns Promise<void> or throws an error */
export declare function createDb(dbConfig: DbConfig, sequelizeOptions: Options): Promise<void>;