Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 944 Bytes

index.md

File metadata and controls

40 lines (30 loc) · 944 Bytes
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

Installation

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

Usage

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 structure
  • Query Building - Advanced usage, not specific to D1
  • Upserting - What is it? How does it work?

API Reference

Refer to the Typedoc site