datastore-backup
Version:
Programatic Backup of Google Cloud Datastore
7 lines (6 loc) • 398 B
TypeScript
import { Datastore } from '@google-cloud/datastore';
import { Ora } from 'ora';
export declare function dumpAllKinds(datastore: Datastore, bucketName: string, backupName?: string, backupDir?: string, spinner?: Ora): Promise<string[]>;
/** Returns a list of all Namespaces in a Datastore for the current namespace.
*/
export declare function getNamespaces(datastore: Datastore): Promise<string[]>;