MCPcopy Create free account
hub / github.com/comuline/api / constructor

Method constructor

src/modules/v1/database.ts:13–15  ·  view source on GitHub ↗
(protected env: T)

Source from the content-addressed store, hash-verified

11 db: NeonDatabase<typeof schema>
12
13 constructor(protected env: T) {
14 this.db = connectDB(env.DATABASE_URL, env.COMULINE_ENV)
15 }
16}
17
18export const connectDB = (url: string, env: string) => {

Callers

nothing calls this directly

Calls 1

connectDBFunction · 0.85

Tested by

no test coverage detected