Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v1.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Connector opens the pool for this connection when it is set. A driver module may supply one when
	// it targets a database the framework does not have a dialect for; otherwise the framework builds
	// the connection itself from the fields below.
	Connector    driver.Connector
	NameReplacer Replacer
	Charset      string
	Connection   string
	Dsn          string
	Database     string
	Driver       string
	Host         string
	Password     string
	Prefix       string
	Schema       string
	Sslmode      string
	Timezone     string
	Username     string
	Port         int
	NoLowerCase  bool
	Singular     bool
}

type Pool

type Pool struct {
	Readers []Config
	Writers []Config
}

type Replacer

type Replacer interface {
	Replace(name string) string
}

Replacer replacer interface like strings.Replacer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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