@photostructure/sqlite
    Preparing search index...

    Interface ChangesetApplyOptions

    interface ChangesetApplyOptions {
        filter?: (tableName: string) => boolean;
        onConflict?: (conflictType: number) => number;
    }
    Index

    Properties

    Properties

    filter?: (tableName: string) => boolean

    Function called to filter which tables to apply changes to.

    Type declaration

      • (tableName: string): boolean
      • Parameters

        • tableName: string

          The name of the table

        Returns boolean

        true to include the table, false to skip it

    onConflict?: (conflictType: number) => number

    Function called when a conflict is detected during changeset application.

    Type declaration

      • (conflictType: number): number
      • Parameters

        • conflictType: number

          The type of conflict (SQLITE_CHANGESET_CONFLICT, etc.)

        Returns number

        One of SQLITE_CHANGESET_OMIT, SQLITE_CHANGESET_REPLACE, or SQLITE_CHANGESET_ABORT