Versions in this module Expand all Collapse all v0 v0.7.7 Sep 1, 2026 v0.7.5 Sep 1, 2026 v0.7.4 Sep 1, 2026 v0.7.3 Aug 26, 2026 v0.7.2 Aug 25, 2026 v0.7.1 Aug 25, 2026 Changes in this version + func ApplySchema(ctx context.Context, db *sqlx.DB, dialect Dialect, cfg *SQL) error + func CloseBackend(sqlDB *sqlx.DB, closeMongo func() error) error + func ProbeStatus(ctx context.Context, cache *ProbeCache, ping func(context.Context) error) *apiv1_status.StatusProbe + type Dialect interface + CaseInsensitiveLike func(column string) string + DriverName func() string + JSONColumnType func() string + JSONContains func(column string) string + JSONTextExtract func(column, key string) string + Name func() string + Rebind func(query string) string + UpsertClause func(conflictCols, updateCols []string) string + var MariaDBDialect Dialect = mariaDBDialect{} + var PostgresDialect Dialect = postgresDialect{} + func Connect(ctx context.Context, cfg *SQL) (*sqlx.DB, Dialect, error) + func ConnectAndApplySchema(ctx context.Context, cfg *SQL) (*sqlx.DB, Dialect, error) + func ForName(name string) (Dialect, error) + type JSON struct + V T + func (j *JSON[T]) Scan(src any) error + func (j JSON[T]) Value() (driver.Value, error) + type MariaDBConfig struct + CAFilePath string + CertFilePath string + Database string + Host string + KeyFilePath string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + TLS bool + User string + func (m *MariaDBConfig) DSN() (string, error) + func (m *MariaDBConfig) MigrationDSN() (string, error) + type PostgresConfig struct + CAFilePath string + CertFilePath string + Database string + Host string + KeyFilePath string + MaxIdleConns int + MaxOpenConns int + Password string + Port int + SSLMode string + User string + func (p *PostgresConfig) DSN() string + type ProbeCache struct + type SQL struct + Backend string + MariaDB *MariaDBConfig + Postgres *PostgresConfig