yunlonggong's picture
Initial project upload
1b44660
raw
history blame contribute delete
357 Bytes
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from './schema';
export const client = (url: string, options?: postgres.Options<{}> | undefined) => postgres(url, options);
export const getDb = (url: string, options?: postgres.Options<{}> | undefined) =>
drizzle(client(url, options), { schema });