Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps *sql.DB with SQLite-specific setup and schema migration.
func (*DB) MigrateTenantColumn ¶
MigrateTenantColumn adds tenant_id to session_entries if it does not already exist. This handles upgrades from schemas that predate multi-tenancy.
func (*DB) SeedDefaults ¶
SeedDefaults creates a default tenant, admin user, and API key if no tenants exist. Returns the plaintext API key for one-time display, or empty string if already seeded.
Click to show internal directories.
Click to hide internal directories.