From 59721cc4de3fce9e2c19d0b164b16b9d6a04f075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=BD=87?= Date: Fri, 12 Dec 2025 18:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20src/index.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/index.ts diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..3839608 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,10 @@ +import { drizzle } from 'drizzle-orm/node-postgres'; +import { users } from './user.ts'; +import dotenv from 'dotenv'; + +dotenv.config(); +const db = drizzle(process.env.DATABASE_URL!); + +const one = await db.select().from(users).limit(1); + +console.log(one); \ No newline at end of file