We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fadbf96 commit c18e00cCopy full SHA for c18e00c
packages/powersync-op-sqlite/src/db/OPSqliteAdapter.ts
@@ -124,9 +124,6 @@ export class OPSQLiteDBAdapter extends BaseObserver<DBAdapterListener> implement
124
private openDatabase(dbFilename: string, encryptionKey?: string): DB {
125
//This is needed because an undefined/null dbLocation will cause the open function to fail
126
const location = this.getDbLocation(this.options.dbLocation);
127
- if (encryptionKey && encryptionKey === '') {
128
- throw new Error('Encryption key cannot be empty when using SQLCipher');
129
- }
130
//Simarlily if the encryption key is undefined/null when using SQLCipher it will cause the open function to fail
131
if (encryptionKey) {
132
return open({
0 commit comments