Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MultichainInMemoryDBClient

Index

Constructors

Properties

chainIdDefault: number = 1
databases: {} = {}

Type declaration

  • [key: string]: Loki

Methods

  • addCollection(collection: object, chainId?: number): void
  • addCollections(collections: any[], chainId?: number): void
  • addDynamicView(collection: string, viewName: string, options: DynamicViewOptions, chainId?: number): DynamicView<any>
  • addEventHook(collection: string, event: string, hook: any, chainId?: number): void
  • addEventsHook(collection: string, hook: any, chainId?: number): void
  • addTransform(collection: string, name: string, transform: Transform[], chainId?: number): void
  • count(collection: string, chainId?: number): number
  • create(chainId: number, options: DatabaseOptions): Loki
  • delete(chainId?: number): void
  • export(chainId?: number): string
  • find(collection: string, find: FindQuery, chainId?: number): any[]
  • findAndRemove(collection: string, find: FindQuery, chainId?: number): void
  • findAndUpdate(collection: string, find: FindQuery, updateFunction: any, chainId?: number): void
  • findOne(collection: string, find: any, chainId?: number): any
  • get(chainId?: number): Loki
  • getCollection(collectionName: string, chainId?: number): Collection<any>
  • getDocument(collection: string, id: number, returnPosition: boolean, chainId?: number): any
  • getDynamicView(collection: string, name: string, chainId?: number): null | DynamicView<any>
  • getTransform(collection: string, name: string, chainId?: number): Transform[]
  • import(serializedDb: string, options?: object, chainId?: number): void
  • initializeDefaultCollections(chainId?: number): void
  • insert(collection: string, data: any, chainId?: number): void
  • listCollections(chainId?: number): Collection<any>[]
  • remove(collection: string, document: any, chainId?: number): void
  • save(chainId?: number, callback?: any): void
  • search(collection: string, query: ChainedQuery, chainId?: number): any[]
  • setChainIdDefault(chainId: number): void
  • update(collection: string, data: any, chainId?: number): void

Generated using TypeDoc