Documentation
¶
Overview ¶
Example: sqlite-todo
Demonstrates drel against SQLite (pure-Go modernc.org/sqlite, no CGO):
- Define a model with db-tag index options (unique + plain index)
- Run `drel generate` to produce scan/snapshot/diff/meta code
- Open an in-memory SQLite database (auto-detected from the DSN)
- CRUD with change tracking + keyset (cursor) pagination
Usage:
cd examples/sqlite-todo go run ../../cmd/drel generate go run .
Click to show internal directories.
Click to hide internal directories.