Remove DB files

This commit is contained in:
2024-10-27 11:10:22 -07:00
parent 460ab44382
commit 0cded50d35
2 changed files with 0 additions and 30 deletions

View File

@@ -1,18 +0,0 @@
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import { env } from "~/env";
import * as schema from "./schema";
/**
* Cache the database connection in development. This avoids creating a new connection on every HMR
* update.
*/
const globalForDb = globalThis as unknown as {
conn: postgres.Sql | undefined;
};
const conn = globalForDb.conn ?? postgres(env.DATABASE_URL);
if (env.NODE_ENV !== "production") globalForDb.conn = conn;
export const db = drizzle(conn, { schema });

View File

@@ -1,12 +0,0 @@
// Example model schema from the Drizzle docs
// https://orm.drizzle.team/docs/sql-schema-declaration
import { pgTable } from "drizzle-orm/pg-core";
import {
serial,
varchar,
timestamp,
integer,
boolean
} from "drizzle-orm/pg-core";
import { sql } from "drizzle-orm";