MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / init

Function init

examples/postgresql/index.js:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22const db = pgp(connection)
23
24const init = async () => {
25 db.none(sql.users.create)
26 .then(() => db.many(sql.users.init))
27 .catch((error) => {
28 console.error(`failed to initialize db: ${error}`)
29 })
30}
31
32init()
33

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected