DittoDB: support `postgresql:` protocol

This commit is contained in:
Alex Gleason 2024-04-19 21:20:35 -05:00
parent aeaa236518
commit 0ddb1782e5
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ export class DittoDB {
case 'sqlite:': case 'sqlite:':
return DittoSQLite.getInstance(); return DittoSQLite.getInstance();
case 'postgres:': case 'postgres:':
case 'postgresql:':
return DittoPostgres.getInstance(); return DittoPostgres.getInstance();
default: default:
throw new Error('Unsupported database URL.'); throw new Error('Unsupported database URL.');