Versions in this module Expand all Collapse all v0 v0.2.0 Jun 28, 2026 Changes in this version + const DriverMySQL + const DriverPostgres + type Config struct + Driver string + Test bool + func (c Config) Validate() error + type Database struct + func New(cfg Config, pg PostgresConfig) (*Database, *sql.DB, error) + func (c *Database) DB() *sql.DB + func (c *Database) Start(ctx context.Context, l logger.Logger, cfg Config) error + func (c *Database) Stop(l logger.Logger) error + type PostgresConfig struct + Host string + MigrationPath string + Name string + Password string + Port int + SSLMode string + Timeout int + Username string + func (c PostgresConfig) Validate() error