@netlify/database
v2.0.3
Published
TypeScript utilities for interacting with Netlify Database
Readme
@netlify/database
Connect to Netlify Database from your Netlify project.
npm install @netlify/databaseimport { getDatabase } from '@netlify/database'
const { sql } = getDatabase()
const users = await sql`SELECT * FROM users`The connection string is read from the NETLIFY_DB_URL environment variable, which Netlify sets for you.
