database

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Example: dark + SQLite database integration

Demonstrates how to use dark with a relational database. Key patterns:

  • Pass *sql.DB to handlers via closures
  • Use Loaders for reads, Actions for writes
  • Session-based auth guards DB routes

Run: go run main.go Open: http://localhost:3000

Jump to

Keyboard shortcuts

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