sqlite-todo

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Example: sqlite-todo

Demonstrates drel against SQLite (pure-Go modernc.org/sqlite, no CGO):

  1. Define a model with db-tag index options (unique + plain index)
  2. Run `drel generate` to produce scan/snapshot/diff/meta code
  3. Open an in-memory SQLite database (auto-detected from the DSN)
  4. CRUD with change tracking + keyset (cursor) pagination

Usage:

cd examples/sqlite-todo
go run ../../cmd/drel generate
go run .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL