denoDB

denoDB

  • Docs
  • GitHub
  • Help

›Clients

Guides

  • Getting started
  • Connect to a database
  • Clients

    • Using MariaDB
    • Using MongoDB
    • Using MySQL
    • Using PostgreSQL
    • Using SQLite
  • Create models
  • Synchronize database
  • Query models
  • Transactions
  • Relationships

    • Foreign key
    • One-to-one
    • One-to-many
    • Many-to-many
  • Model events

API Reference

    Models

    • Data types
    • Field descriptors
    • Model methods
    • Model records

Using SQLite

DenoDB is using Deno SQLite for SQLite support.

The configuration is pretty straight-forward:

import { Database, SQLite3Connector } from 'https://deno.land/x/denodb/mod.ts';

const connector = new SQLite3Connector({
  filepath: './database.sqlite',
});

const db = new Database(connector);
Last updated on 1/2/2021 by eveningkid
← Using PostgreSQLCreate models →
Docs
Getting StartedAPI Reference
More
GitHubStar