support postgresql as database option

This commit is contained in:
miloschwartz
2025-06-04 12:02:07 -04:00
parent 62a0104e70
commit 2cca561e51
218 changed files with 1417 additions and 713 deletions

View File

@@ -1,4 +1,4 @@
import db from "@server/db";
import { db } from "@server/db";
import { MessageHandler } from "../ws";
import {
exitNodes,
@@ -6,7 +6,7 @@ import {
sites,
Target,
targets
} from "@server/db/schemas";
} from "@server/db";
import { eq, and, sql, inArray } from "drizzle-orm";
import { addPeer, deletePeer } from "../gerbil/peers";
import logger from "@server/logger";