Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/porsager/postgres
/ fetch
Function
fetch
cf/test.js:9–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
8
export
default {
9
async
fetch() {
10
const
sql = postgres(DATABASE_URL)
11
const
rows =
await
sql`SELECT table_name FROM information_schema.columns`
12
return
new
Response(rows.map((e) => e.table_name).join(
'\n'
))
13
}
14
}
Callers
nothing calls this directly
Calls
2
postgres
Function · 0.50
sql
Function · 0.50
Tested by
no test coverage detected