@launchql/core
Version:
LaunchQL Package and Migration Tools
27 lines (26 loc) • 734 B
TypeScript
import { PgConfig } from 'pg-env';
export declare class LaunchQLInit {
private pool;
private pgConfig;
constructor(config: PgConfig);
/**
* Bootstrap standard roles (anonymous, authenticated, administrator)
*/
bootstrapRoles(): Promise<void>;
/**
* Bootstrap test roles (roles only, no users)
*/
bootstrapTestRoles(): Promise<void>;
/**
* Bootstrap database roles with custom username and password
*/
bootstrapDbRoles(username: string, password: string): Promise<void>;
/**
* Remove database roles and revoke grants
*/
removeDbRoles(username: string): Promise<void>;
/**
* Close the database connection
*/
close(): Promise<void>;
}