VDocIndex Class

Packages > @anticrm/core > VDocIndex

Signature:

export declare class VDocIndex implements DomainIndex 

Implements: DomainIndex

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(modelDb, storage) Constructs a new instance of the VDocIndex class

Methods

List of methods on this class
Method Modifiers Description
onCreate(ctx, create)
onPush(ctx, tx)
onUpdate(ctx, tx)
tx(ctx, tx)

Constructors

VDocIndex.(constructor)

Constructs a new instance of the VDocIndex class

Signature:

constructor(modelDb: Model, storage: Storage);

Parameters

List of parameters
Parameter Type Description
modelDb Model
storage Storage

Methods

onCreate

Signature:

onCreate(ctx: TxContext, create: CreateTx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
create CreateTx

Returns:

Promise<any>

onPush

Signature:

onPush(ctx: TxContext, tx: PushTx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
tx PushTx

Returns:

Promise<any>

onUpdate

Signature:

onUpdate(ctx: TxContext, tx: UpdateTx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
tx UpdateTx

Returns:

Promise<any>

tx

Signature:

tx(ctx: TxContext, tx: Tx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
tx Tx

Returns:

Promise<any>