Versions in this module Expand all Collapse all v0 v0.6.1 Jan 30, 2026 v0.6.0 Jan 30, 2026 v0.5.1 Jan 30, 2026 v0.5.0 Jan 19, 2026 v0.4.0 Jan 17, 2026 Changes in this version + func GetDriver() string v0.3.0 Jan 17, 2026 v0.2.0 Jan 17, 2026 v0.1.0 Jan 13, 2026 Changes in this version + func CloseDB() error + func GetDB() *sql.DB + func InitDB(config Config) error + type Config struct + ConnMaxLifetime int + DataSource string + Database string + Driver string + Host string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + Username string + type Connection struct + DB *sql.DB + Driver string + func NewConnection(config Config) (*Connection, error) + func (c *Connection) Close() error + func (c *Connection) Ping() error + type Option struct + CreatedAt time.Time + ID int64 + Key string + UpdatedAt time.Time + Value string + type OptionRepository struct + func NewOptionRepository(db *sql.DB) *OptionRepository + func (r *OptionRepository) Create(key, value string) error + func (r *OptionRepository) Delete(key string) error + func (r *OptionRepository) Get(key string) (*Option, error) + func (r *OptionRepository) List() ([]*Option, error) + func (r *OptionRepository) Update(key, value string) error