INNER CODE UNIT · TypeScript
OPSQLiteProxyImpl
OP-Engineering/op-sqlite · node/src/index.ts:21
class OPSQLiteProxyImpl implements OPSQLiteProxy {
open(options: {
name: string;
location?: string;
encryptionKey?: string;
}): DB {
if (options.encryptionKey) {
console.warn(
"Encryption is not supported in the Node.js implementation. Use @journeyapps/sqlcipher for encryption support.",
);
}
return new NodeDatabase(options.name, options.location);
}
openV2(options: { path: string; encryptionKey?: string }): DB {
if (options.encryptionKey) {
console.warn(
"Encryption is not supported in the Node.js implementation. Use @journeyapps/sqlcipher for encryption support.",