Merge branch 'postgresql' into 'main'
DittoDB: support `postgresql:` protocol See merge request soapbox-pub/ditto!170
This commit is contained in:
commit
ad33fec129
|
@ -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.');
|
||||||
|
|
Loading…
Reference in New Issue