How to use the @wireapp/store-engine-sqleet.SQLiteType.JSON_OR_TEXT function in @wireapp/store-engine-sqleet

To help you get started, we’ve selected a few @wireapp/store-engine-sqleet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wireapp / wire-webapp / src / script / storage / SQLeetSchemata.ts View on Github external
static get SCHEMATA(): SQLeetSchema[] {
    return [
      {
        schema: {
          [StorageSchemata.OBJECT_STORE.AMPLIFY]: SQLiteType.JSON_OR_TEXT,
          [StorageSchemata.OBJECT_STORE.CLIENTS]: {
            address: SQLiteType.TEXT,
            class: SQLiteType.TEXT,
            id: SQLiteType.TEXT,
            label: SQLiteType.TEXT,
            location: SQLiteType.JSON,
            meta: SQLiteType.JSON,
            model: SQLiteType.TEXT,
            time: SQLiteType.TEXT,
            type: SQLiteType.TEXT,
          },
          [StorageSchemata.OBJECT_STORE.CONVERSATIONS]: {
            accessModes: SQLiteType.JSON,
            accessRole: SQLiteType.TEXT,
            archived_state: SQLiteType.BOOLEAN,
            archived_timestamp: SQLiteType.INTEGER,

@wireapp/store-engine-sqleet

Store Engine implementation for SQLite 3 (WebAssembly) with encryption.

GPL-3.0
Latest version published 2 years ago

Package Health Score

40 / 100
Full package analysis