Versions in this module Expand all Collapse all v0 v0.0.0 Jul 11, 2020 Changes in this version + func NewConnection(ctx context.Context, cfg ConnectionConfig, logger *log.Logger) (db *sql.DB) + type ConnectionConfig struct + ConnMaxLifetime time.Duration + Database string + Host string + MaxIdleConns int + MaxOpenConns int + Pass string + Port int + User string + type NullBool struct + func (nb NullBool) MarshalJSON() ([]byte, error) + func (nb NullBool) UnmarshalJSON(b []byte) error + type NullFloat64 struct + func (nf NullFloat64) MarshalJSON() ([]byte, error) + func (nf NullFloat64) UnmarshalJSON(b []byte) error + type NullInt64 struct + func (ni NullInt64) MarshalJSON() ([]byte, error) + func (ni NullInt64) UnmarshalJSON(b []byte) error + type NullString struct + func (ns NullString) MarshalJSON() ([]byte, error) + func (ns NullString) UnmarshalJSON(b []byte) error + type NullTime struct + func (nt NullTime) MarshalJSON() ([]byte, error) + func (nt NullTime) UnmarshalJSON(b []byte) error