title |
---|
D1 ORM |
D1-ORM is a library for Cloudflare's D1 Database product.
Advantages:
- Dependency-free
- Strictly typed, see TypeScript hints for your tables in your editor of choice
- Object oriented - use classes to interact with your items
- No SQL knowledge required
Use your preferred package manager to install the library, for example NPM.
=== "NPM"
npm install d1-orm
=== "Yarn"
yarn add d1-orm
=== "PNPM"
pnpm add d1-orm
Refer to the following guides for using the library.
Models
- The simpler, recommended interface to querying with advantages such as automatically-generated types based on your table structureQuery Building
- Advanced usage, not specific to D1Upserting
- What is it? How does it work?
Refer to the Typedoc site