Synclets logoSynclets

BaseTableConnectorImplementations

{
  connect?: () => Promise<void>;
  disconnect?: () => Promise<void>;
  readTableHash: (context: Context) => Promise<Hash | undefined>;
  readRowIds: (context: Context) => Promise<string[]>;
  readRowHash: (rowId: string, context: Context) => Promise<Hash | undefined>;
  readCellIds: (rowId: string, context: Context) => Promise<string[] | undefined>;
  readCellAtom: (rowId: string, cellId: string, context: Context) => Promise<Atom | undefined>;
  readCellTimestamp: (rowId: string, cellId: string, context: Context) => Promise<Timestamp | undefined>;
  writeTableHash: (hash: Hash, context: Context) => Promise<void>;
  writeRowHash: (rowId: string, hash: Hash, context: Context) => Promise<void>;
  writeCellAtom: (rowId: string, cellId: string, atom: Atom, context: Context) => Promise<void>;
  writeCellTimestamp: (rowId: string, cellId: string, timestamp: Timestamp, context: Context) => Promise<void>;
  removeCellAtom: (rowId: string, cellId: string, context: Context) => Promise<void>;
}
TypeDescription
connect?() => Promise<void>
disconnect?() => Promise<void>
readTableHash(context: Context) => Promise<Hash | undefined>
readRowIds(context: Context) => Promise<string[]>
readRowHash(rowId: string, context: Context) => Promise<Hash | undefined>
readCellIds(rowId: string, context: Context) => Promise<string[] | undefined>
readCellAtom(rowId: string, cellId: string, context: Context) => Promise<Atom | undefined>
readCellTimestamp(rowId: string, cellId: string, context: Context) => Promise<Timestamp | undefined>
writeTableHash(hash: Hash, context: Context) => Promise<void>
writeRowHash(rowId: string, hash: Hash, context: Context) => Promise<void>
writeCellAtom(rowId: string, cellId: string, atom: Atom, context: Context) => Promise<void>
writeCellTimestamp(rowId: string, cellId: string, timestamp: Timestamp, context: Context) => Promise<void>
removeCellAtom(rowId: string, cellId: string, context: Context) => Promise<void>