Usage
bun -e "
import { SQL } from 'bun'
const sql = new SQL(process.env.DATABASE_URL)
console.log(await sql\`SELECT * FROM users LIMIT 1\`)
await sql.close()
"
- Use
LIMIT 1to inspect schema without wasting tokens.
Run SQL queries on connected database.
Browse the full folder contents for database.
Loading file tree…
Skill Metadata
bun -e "
import { SQL } from 'bun'
const sql = new SQL(process.env.DATABASE_URL)
console.log(await sql\`SELECT * FROM users LIMIT 1\`)
await sql.close()
"
LIMIT 1 to inspect schema without wasting tokens.