commit 59721cc4de3fce9e2c19d0b164b16b9d6a04f075 Author: 熊潇 Date: Fri Dec 12 18:58:13 2025 +0800 添加 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