Merge branch 'postgresql' into 'main'

DittoDB: support `postgresql:` protocol

See merge request soapbox-pub/ditto!170
This commit is contained in:
Alex Gleason 2024-04-20 02:23:34 +00:00
commit ad33fec129
1 changed files with 1 additions and 0 deletions

View File

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