database

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.9.0

type Config struct {
	Dialector    gorm.Dialector
	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 added in v1.16.0

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

type Replacer added in v1.15.0

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