Skip to content

Commit dfb731f

Browse files
committed
Clean up
1 parent 10d8451 commit dfb731f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/web/src/db/PowerSyncDatabase.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export interface WebEncryptionOptions {
6464
}
6565

6666
type WithWebEncryptionOptions<Base> = Base & {
67+
/**
68+
* Encryption key for the database.
69+
* If set, the database will be encrypted using Multiple Ciphers.
70+
*/
6771
encryptionKey?: string;
6872
};
6973

packages/web/src/shared/open-db.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ export async function _openDB(
1414
): Promise<DBFunctionsInterface> {
1515
let moduleFactory;
1616
if (encryptionKey) {
17-
console.log('Using encrypted database');
1817
moduleFactory = (await import('@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs')).default;
1918
} else {
20-
console.log('Using unencrypted database');
2119
moduleFactory = (await import('@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs')).default;
2220
}
23-
// const { default: moduleFactory } = await import('@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs');
2421
const module = await moduleFactory();
2522
const sqlite3 = SQLite.Factory(module);
2623

0 commit comments

Comments
 (0)