@wxn0brp/db-core
    Preparing search index...

    Interface ActionsBaseInterface

    interface ActionsBaseInterface {
        _inited: boolean;
        numberId: boolean;
        add(query: Add): Promise<DataInternal>;
        ensureCollection(collection: string): Promise<boolean>;
        find(query: Find): Promise<DataInternal[]>;
        findOne(query: FindOne): Promise<DataInternal>;
        getCollections(): Promise<string[]>;
        init(...args: any[]): Promise<void>;
        issetCollection(collection: string): Promise<boolean>;
        remove(query: Remove): Promise<DataInternal[]>;
        removeCollection(collection: string): Promise<boolean>;
        removeOne(query: Remove): Promise<DataInternal>;
        toggleOne(query: ToggleOne): Promise<VQueryT.ToggleOneResult<DataInternal>>;
        update(query: Update): Promise<DataInternal[]>;
        updateOne(query: Update): Promise<DataInternal>;
        updateOneOrAdd(
            query: VQueryT.UpdateOneOrAdd,
        ): Promise<VQueryT.UpdateOneOrAddResult<DataInternal>>;
    }

    Implemented by

    Index

    Properties

    _inited: boolean
    numberId: boolean

    Methods

    • Parameters

      • collection: string

      Returns Promise<boolean>

    • Returns Promise<string[]>

    • Parameters

      • ...args: any[]

      Returns Promise<void>

    • Parameters

      • collection: string

      Returns Promise<boolean>

    • Parameters

      • collection: string

      Returns Promise<boolean>