couchbase-index-manager
Version:
Manage Couchbase indexes during the CI/CD process
30 lines (29 loc) • 692 B
TypeScript
import { IndexManager } from './index-manager';
export interface ConnectionInfo {
cluster: string;
username: string;
password: string;
bucketName: string;
}
/**
* @private
* Wraps a process in a Couchbase connection with IndexManager
*/
export declare class ConnectionManager {
private connectionInfo;
private cluster?;
private bucket?;
constructor(connectionInfo: ConnectionInfo);
/**
* Runs the process
*/
execute<T>(handler: (manager: IndexManager) => Promise<T>): Promise<T>;
/**
* Bootstraps the Couchbase connection.
*/
private bootstrap;
/**
* Closes the Couchbase connection.
*/
private close;
}