18 lines
563 B
TypeScript
18 lines
563 B
TypeScript
import type { BunMariaDBConfig } from "../types";
|
|
/**
|
|
* Prefer mariadb-dump, fall back to mysqldump.
|
|
*/
|
|
export declare function resolveDumpBinary(): string;
|
|
/**
|
|
* Prefer mariadb client, fall back to mysql.
|
|
*/
|
|
export declare function resolveClientBinary(): string;
|
|
/**
|
|
* Dump the configured database to an SQL string.
|
|
*/
|
|
export declare function dumpDatabase(config: BunMariaDBConfig): Promise<string>;
|
|
/**
|
|
* Restore an SQL dump into the configured database.
|
|
*/
|
|
export declare function restoreDatabase(config: BunMariaDBConfig, sql: string): Promise<void>;
|