Options
All
  • Public
  • Public/Protected
  • All
Menu

DeleteBuilder builds a deletion.

Hierarchy

Implements

Index

Constructors

constructor

Methods

all

  • all(): this

catch

  • catch implements Promiselike.catch()

    Type parameters

    • R

    Parameters

    • onRejected: (err: any) => R | Promise<R>
        • (err: any): R | Promise<R>
        • Parameters

          • err: any

          Returns R | Promise<R>

    Returns Promise<IDeleteRangeResponse | R>

Protected createPromise

exec

getPrevious

  • getPrevious instructs etcd to try to get the previous value of the key before setting it. One may not always be available if a compaction takes place.

    Returns Promise<IKeyValue[]>

inRange

  • inRange instructs the builder to delete keys in the specified byte range.

    Parameters

    Returns this

key

  • key(value: string | Buffer): this
  • key sets a single key to be deleted.

    Parameters

    • value: string | Buffer

    Returns this

op

options

  • options(options: CallOptions | undefined): this
  • Sets the GRPC call options for this request.

    Parameters

    • options: CallOptions | undefined

    Returns this

prefix

  • prefix(value: string | Buffer): this
  • key sets a single key to be deleted.

    Parameters

    • value: string | Buffer

    Returns this

range

  • range(range: Range): this

then

  • then<R, V>(onFulfilled: (value: IDeleteRangeResponse) => R | Promise<R>, onRejected?: undefined | ((err: any) => V | Promise<V>)): Promise<R | V>

Legend

  • Constructor
  • Method
  • Inherited method

Generated using TypeDoc