Interface LevelUp

Index

Methods

Methods

public batch(array: Batch[], options?: { keyEncoding?: string; valueEncoding?: string; sync?: boolean; }, callback?: (error?: any) => any): any

Parameters

  • array: Batch[]
  • options?: { keyEncoding?: string; valueEncoding?: string; sync?: boolean; } optional
  • callback?: (error?: any) => any optional

Returns

any

public batch(array: Batch[], callback?: (error?: any) => any): any

Parameters

  • array: Batch[]
  • callback?: (error?: any) => any optional

Returns

any

public batch(): LevelUpChain

Returns

LevelUpChain

public close(callback?: (error: any) => any)

Parameters

  • callback?: (error: any) => any optional

public createKeyStream(options?: any): any

Parameters

  • options?: any optional

Returns

any

public createReadStream(options?: any): any

Parameters

  • options?: any optional

Returns

any

public createValueStream(options?: any): any

Parameters

  • options?: any optional

Returns

any

public createWriteStream(options?: any): any

Parameters

  • options?: any optional

Returns

any

public del(key: any, callback?: (error: any) => any)

Parameters

  • key: any
  • callback?: (error: any) => any optional

public del(key: any, options?: { keyEncoding?: string; sync?: boolean; }, callback?: (error: any) => any)

Parameters

  • key: any
  • options?: { keyEncoding?: string; sync?: boolean; } optional
  • callback?: (error: any) => any optional

public destroy(location: string, callback?: Function)

Parameters

  • location: string
  • callback?: Function optional

public get(key: any, callback?: (error: any, value: any) => any)

Parameters

  • key: any
  • callback?: (error: any, value: any) => any optional

public get(key: any, options?: { keyEncoding?: string; fillCache?: boolean; }, callback?: (error: any, value: any) => any)

Parameters

  • key: any
  • options?: { keyEncoding?: string; fillCache?: boolean; } optional
  • callback?: (error: any, value: any) => any optional

public isClosed(): boolean

Returns

boolean

public isOpen(): boolean

Returns

boolean

public open(callback?: (error: any) => any)

Parameters

  • callback?: (error: any) => any optional

public put(key: any, value: any, callback?: (error: any) => any)

Parameters

  • key: any
  • value: any
  • callback?: (error: any) => any optional

public put(key: any, value: any, options?: { sync?: boolean; }, callback?: (error: any) => any)

Parameters

  • key: any
  • value: any
  • options?: { sync?: boolean; } optional
  • callback?: (error: any) => any optional

public repair(location: string, callback?: Function)

Parameters

  • location: string
  • callback?: Function optional