Constructors

  • Database constructor.

    Parameters

    • Optionaloptions: { path: string } & Partial<DatabaseOptions>
      • path: string

        Database path

      • version

        Database version

      • path

        Database path

      • onUpgrade

        Triggered when the database is upgraded

      • onDowngrade

        Triggered when the database is downgraded

    Returns default

Properties

_models: Record<string, default<any>>
Model: typeof default
options: DatabaseOptions
Schema: typeof default
SchemaType: typeof default
Schema: typeof default = Schema
SchemaType: typeof default = SchemaType
version: number

Methods

  • Returns {
        meta: { version: number; warehouse: string };
        models: Record<string, default<any>>;
    }