Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
22
const
db = pgp(connection)
23
24
const
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
32
init()
33
Callers
1
index.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected