sql

package
v2.273.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sql provides SQL database wiring and helpers for go-service.

Index

Constants

This section is empty.

Variables

View Source
var Module = di.Module(
	pg.Module,
)

Module provides the Fx module that wires SQL database support.

Functions

This section is empty.

Types

type Config

type Config struct {
	PG *pg.Config `yaml:"pg,omitempty" json:"pg,omitempty" toml:"pg,omitempty"`
}

Config contains SQL database configuration for go-service.

It currently supports PostgreSQL via the PG field.

func (*Config) IsEnabled added in v2.115.0

func (c *Config) IsEnabled() bool

IsEnabled reports whether SQL configuration is present (i.e., the config is non-nil).

Directories

Path Synopsis
Package config provides SQL database configuration types for go-service.
Package config provides SQL database configuration types for go-service.
Package driver provides SQL driver registration and adapter helpers for go-service.
Package driver provides SQL driver registration and adapter helpers for go-service.
Package pg provides SQL database wiring and helpers for go-service.
Package pg provides SQL database wiring and helpers for go-service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL