Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

db0

unjs1.6mMIT0.2.1TypeScript support: included

Lightweight SQL Connector

readme

DB0

npm version npm downloads

[!IMPORTANT] DB0 development is in the early stages. Track progress via GitHub issues.

DB0 is a lightweight SQL connector:

✅ Works with several SQL connectors.

✅ Can be integrated with ORMs and embeded into frameworks.

✅ Provides a simple but elegant query API out of the box.

👉 Read 📚 Documentation

Contribution

<summary>Local development</summary>
  • Clone this repository
  • Install the latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run tests using pnpm dev or pnpm test

License

Published under the MIT license. Made by @pi0 and community 💛


🤖 auto updated with automd

changelog

Changelog

v0.2.1

compare changes

🩹 Fixes

  • sqlite: Support :memory: (1a40c4f)

❤️ Contributors

  • Pooya Parsa (@pi0)

v0.2.0

compare changes

🚀 Enhancements

  • Add dialect and planetscale connector (#59)
  • Mysql connector (#86)
  • Support pglite (#110)

🩹 Fixes

  • postgresql: Use default export (#63)
  • pkg: ⚠️ Correct /integrations/drizzle subpath export (#106)

💅 Refactors

  • Relax peer dependencies (a80b62c)
  • postgresql: Correct function name (#114)
  • Explicit exports (f5c30bf)

📖 Documentation

  • vercel: Fix the connector name (#74)
  • Fix typo (#108)
  • sqlite: Fix pm install component (#85)
  • guide: Add information about static parameters (#80)
  • Added jsdocs to exported functions and types (#89)
  • Remove non existent sql import (9e5550f)

🏡 Chore

✅ Tests

  • integrations: Drizzle integration test (#79)

⚠️ Breaking Changes

  • pkg: ⚠️ Correct /integrations/drizzle subpath export (#106)

❤️ Contributors

v0.1.4

compare changes

🩹 Fixes

  • d1: Support __env__ for accessing binding (2ef9d57)

💅 Refactors

  • d1: Throw a better error if binding not found (#60)

📖 Documentation

  • Fix typos (#56)

🏡 Chore

  • Apply automated updates (5760665)

❤️ Contributors

v0.1.3

compare changes

🚀 Enhancements

📖 Documentation

  • readme: Fix links (#52)

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Shoshana Connack

v0.1.2

compare changes

🚀 Enhancements

  • Add libsql support (#25)
  • Support multiple libsql exports (#31)
  • Support static placeholders with sql template (378fe62)

💅 Refactors

📖 Documentation

🏡 Chore

🤖 CI

  • Use conventional commit for autofix action (#34)

❤️ Contributors

v0.1.1

🚀 Enhancements

  • Add posgresql connector (51823eb)
  • Support string templates for query (feea30f)
  • Drizzle integration support (#17)

💅 Refactors

  • Merge db.query into db.sql (eef2417)

📖 Documentation

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)