feat(core): scaffold account manager platform
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
import * as schema from "./schema";
|
||||
|
||||
export function createDatabase(databaseUrl: string) {
|
||||
const client = postgres(databaseUrl, { max: 10 });
|
||||
return {
|
||||
client,
|
||||
db: drizzle(client, { schema }),
|
||||
};
|
||||
}
|
||||
|
||||
export * from "./schema";
|
||||
Reference in New Issue
Block a user