11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
|
import "@/drizzle/envConfig";
|
||
|
import { drizzle } from "drizzle-orm/vercel-postgres";
|
||
|
import { sql } from "@vercel/postgres";
|
||
|
import * as schema from "./schema";
|
||
|
|
||
|
export const db = drizzle(sql, { schema });
|
||
|
|
||
|
export const getUsers = async () => {
|
||
|
return db.query.UsersTable.findMany();
|
||
|
};
|