@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
103 lines • 2.1 kB
TypeScript
import path from "path";
export type MysqlConnectionInfo = {
host: string;
/**
* @default 3306
*/
port?: string;
/**
* @default root
*/
user?: string;
pass: string;
};
export declare const checkConnection: (options: MysqlConnectionInfo & {
isDebugging?: boolean;
}) => Promise<boolean>;
export declare const backup: (options: Partial<MysqlConnectionInfo> & {
/**
* @default all-databases
*/
dbName?: string;
/**
* @default admin
*/
authDb?: string;
/**
* Output directory
*/
outDir?: string;
/**
* Backup ID
*/
backupId?: string;
} & {
isDebugging?: boolean;
}) => Promise<{
backupId: string;
name: string;
path: string;
}>;
export declare const restore: (options: Partial<MysqlConnectionInfo> & {
/**
* Database name
*/
dbName: string;
/**
* @default admin
*/
authDb?: string;
/**
* Backup path
*/
path?: string;
} & {
isDebugging?: boolean;
}) => Promise<boolean>;
declare const MySQL: {
checkConnection: (options: MysqlConnectionInfo & {
isDebugging?: boolean;
}) => Promise<boolean>;
backup: (options: Partial<MysqlConnectionInfo> & {
/**
* @default all-databases
*/
dbName?: string;
/**
* @default admin
*/
authDb?: string;
/**
* Output directory
*/
outDir?: string;
/**
* Backup ID
*/
backupId?: string;
} & {
isDebugging?: boolean;
}) => Promise<{
backupId: string;
name: string;
path: string;
}>;
restore: (options: Partial<MysqlConnectionInfo> & {
/**
* Database name
*/
dbName: string;
/**
* @default admin
*/
authDb?: string;
/**
* Backup path
*/
path?: string;
} & {
isDebugging?: boolean;
}) => Promise<boolean>;
};
export default MySQL;
//# sourceMappingURL=mysql.d.ts.map