mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 02:54:19 +01:00
switch to deno.land/postgresjs for free 4x speed increase
This commit is contained in:
@@ -14,7 +14,7 @@ export class DittoPostgres {
|
||||
if (!this.db) {
|
||||
this.db = new Kysely({
|
||||
dialect: new PostgresJSDialect({
|
||||
postgres: postgres(Conf.databaseUrl)
|
||||
postgres: postgres(Conf.databaseUrl) as any
|
||||
}),
|
||||
log: KyselyLogger
|
||||
});
|
||||
|
||||
@@ -62,3 +62,5 @@ export async function getTestDB() {
|
||||
[Symbol.asyncDispose]: () => kysely.destroy(),
|
||||
};
|
||||
}
|
||||
|
||||
export const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
Reference in New Issue
Block a user