package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 20, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config loads and validates the cosql TOML config file.
DefaultPath returns ~/.config/cosql/config.toml.
Config is the top-level TOML config.
Load reads and validates the config at path. An empty path resolves to
DefaultPath. The file must have mode 0600 (no group/other bits).
Aliases returns a sorted list of configured db aliases.
Get returns the database for an alias. If alias is empty, DefaultDB is used.
type Database struct {
Driver string `toml:"driver"`
DSN string `toml:"dsn"`
Notes string `toml:"notes"`
}
Database describes a single db alias.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.