Help us shape the future of Go! Take the 2026 Go Developer Survey

basic

command
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Example: end-to-end usage of lagodev with an in-memory SQLite database. Run it with `go run ./examples/basic`.

The example is the shortest possible tour:

  1. open a connection;
  2. apply a migration via the migrator;
  3. seed rows through the factory;
  4. query the ORM with eager-loaded relations;
  5. delete a row.

Jump to

Keyboard shortcuts

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