From ec752e0367bdbc60a15766b0d2f724db8f1e085f Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 24 May 2024 12:11:23 +0200 Subject: [PATCH] updated index.ts --- src/server/db/index.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/server/db/index.ts b/src/server/db/index.ts index 8c70d51..108c0bc 100644 --- a/src/server/db/index.ts +++ b/src/server/db/index.ts @@ -4,12 +4,3 @@ import { sql } from '@vercel/postgres'; import * as schema from './schema'; export const db = drizzle(sql, { schema }); - -export const allWines = await db.query.wines.findMany(); - -type NewWine = typeof schema.wines.$inferInsert; -export const insertWine = async (wine: NewWine) => { - return db.insert(schema.wines).values(wine).returning(); -} - -export const allProducers = await db.query.producers.findMany();