summaryrefslogtreecommitdiff
path: root/client/src/database-connection.model.ts
blob: 86999be3bcdb1a970df236a56b4d54ac0b1b2c55 (plain)
1
2
3
4
5
6
7
8
export interface DatabaseConnection {
  init(): Promise<any>
  close(): any
  subscribe(path: string, callback: (e: any) => any): Promise<() => any>
  write(path: string, toWrite: Object): Promise<any>
  read(path: string): Promise<any>
  remove(path: string): Promise<any>
}