stashing code

This commit is contained in:
user
2025-10-20 17:07:41 +03:00
commit f5b99afc8f
890 changed files with 54823 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import "dotenv/config";
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import * as schema from "./schema";
const dbUrl = process.env.AIRPORTS_DB_URL ?? "";
const client = postgres(dbUrl);
const db = drizzle(client, { schema });
export type AirportsDatabase = typeof db;
export * from "drizzle-orm";
export { db as airportsDb, schema };