mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Revert DittoPglite
This commit is contained in:
parent
8316762370
commit
a0fd702e09
1 changed files with 1 additions and 3 deletions
|
|
@ -8,11 +8,9 @@ import { KyselyLogger } from '@/db/KyselyLogger.ts';
|
||||||
|
|
||||||
export class DittoPglite {
|
export class DittoPglite {
|
||||||
static create(databaseUrl: string): DittoDatabase {
|
static create(databaseUrl: string): DittoDatabase {
|
||||||
const pglite = new PGlite(databaseUrl);
|
|
||||||
|
|
||||||
const kysely = new Kysely<DittoTables>({
|
const kysely = new Kysely<DittoTables>({
|
||||||
dialect: new PgliteDialect({
|
dialect: new PgliteDialect({
|
||||||
database: pglite,
|
database: new PGlite(databaseUrl),
|
||||||
}),
|
}),
|
||||||
log: KyselyLogger,
|
log: KyselyLogger,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue