UNPKG

@getanthill/datastore

Version:

Event-Sourced Datastore

9 lines (8 loc) 689 B
import type { Services } from '../typings'; import { Command } from 'commander'; export declare function aggregate(services: Services): (filePath: string, cmd: any) => Promise<void>; export declare function importData(services: Services): (filePath: string, cmd: any) => Promise<void>; export declare function replayEvents(services: Services): (filePath: string, cmd: any) => Promise<void>; export declare function exportData(services: Services): (model: string, filePath: string, cmd: any) => Promise<void>; export declare function validateData(services: Services): (model: string, cmd: any) => Promise<void>; export default function register(services: Services, name?: string): Command;