How to use the @wireapp/store-engine-sqleet.SQLeetEngine 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 / auth / StoreEngineProvider.ts View on Github external
export const provideTemporaryAndNonPersistentEngine = async (storeName: string): Promise => {
  await Dexie.delete('/sqleet');
  const encryptionKey = await saveRandomEncryptionKey();
  const engine = new SQLeetEngine('/worker/sqleet-worker.js', SQLeetSchemata.getLatest(), encryptionKey);
  await engine.init(storeName);
  return engine;
};
github wireapp / wire-webapp / src / script / storage / StorageService.ts View on Github external
static async getUnitializedEngine(): Promise {
    const encryptionKey = await getEphemeralValue();
    return new SQLeetEngine('/worker/sqleet-worker.js', SQLeetSchemata.getLatest(), encryptionKey);
  }

@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