db

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Raw

func Raw(expr string, args ...any) any

Types

type Config added in v1.12.0

type Config interface {
	Reads() []databasecontract.Config
	Writes() []databasecontract.Config
}

type ConfigImpl added in v1.12.0

type ConfigImpl struct {
	// contains filtered or unexported fields
}

func NewConfigImpl added in v1.12.0

func NewConfigImpl(config config.Config, connection string) *ConfigImpl

func (*ConfigImpl) Reads added in v1.12.0

func (c *ConfigImpl) Reads() []databasecontract.Config

func (*ConfigImpl) Writes added in v1.12.0

func (c *ConfigImpl) Writes() []databasecontract.Config

type Dsn added in v1.12.0

type Dsn interface {
	Mysql(config databasecontract.Config) string
	Postgresql(config databasecontract.Config) string
	Sqlite(config databasecontract.Config) string
	Sqlserver(config databasecontract.Config) string
}

type DsnImpl added in v1.12.0

type DsnImpl struct {
	// contains filtered or unexported fields
}

func NewDsnImpl added in v1.12.0

func NewDsnImpl(config config.Config, connection string) *DsnImpl

func (*DsnImpl) Mysql added in v1.12.0

func (d *DsnImpl) Mysql(config databasecontract.Config) string

func (*DsnImpl) Postgresql added in v1.12.0

func (d *DsnImpl) Postgresql(config databasecontract.Config) string

func (*DsnImpl) Sqlite added in v1.12.0

func (d *DsnImpl) Sqlite(config databasecontract.Config) string

func (*DsnImpl) Sqlserver added in v1.12.0

func (d *DsnImpl) Sqlserver(config databasecontract.Config) string

Jump to

Keyboard shortcuts

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