classicborne
    Preparing search index...

    Class BaseSqliteAdapter

    I am the base for the adapters that use SQLite as their database. I expect my subclasses to implement the BaseSqliteAdapter.execute, BaseSqliteAdapter.close and BaseSqliteAdapter.initializeDatabase methods.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    db: any
    keyframeRecord: KeyframeRecord

    Methods

    • Adds a keyframe to the database.

      Parameters

      • offset: number

        The offset in the VHS file.

      • totalActionCount: number

        The action count at this keyframe.

      • bufferActionCount: number

        Yet to be documented.

      • template: string

        The template associated with this keyframe.

      • compressedVoxelData: Buffer<ArrayBufferLike>

        The level voxel data at this keyframe.

      • bounds: Vector3

        The bounds of the level.

      • OptionallevelData: string = "{}"

        Optional level data in JSON format. Default is "{}"

      Returns Promise<void>

    • Executes the specified Statement object.

      Parameters

      • statement: Statement

        The Statement instance to execute.

      • Optionalparameters: any[]

        The parameters to pass into the parameterized statement.

      Returns Promise<any>

    • Gets the latest keyframe before a given action count for a specific template.

      Parameters

      • beforeActionCount: number

        The action count to search before.

      • template: string

        The template to filter by.

      • bounds: Vector3

        The bounds of the level.

      Returns Promise<any>

      The latest keyframe record or null if not found.