option

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuckDB

type DuckDB struct {
}

func (*DuckDB) SetDefault

func (o *DuckDB) SetDefault()

type MySQL

type MySQL struct {
	Charset           string
	Collation         string
	InterpolateParams bool
	Loc               string         `url:",defualt=Asia/Shanghai"`
	MultiStatements   bool           `url:",default=true"`
	ParseTime         bool           `url:",default=true"`
	Timeout           types.Duration `url:",default=2s"`
	ReadTimeout       types.Duration `url:",default=30s"`
	WriteTimeout      types.Duration `url:",default=10s"`
	TLS               string         `url:",default=false"`
}

func (*MySQL) SetDefault

func (o *MySQL) SetDefault()

func (*MySQL) WithTLS

func (o *MySQL) WithTLS(c *tls.Config) error

type Postgres

type Postgres struct {
}

func (*Postgres) SetDefault

func (o *Postgres) SetDefault()

type SQLite

type SQLite struct {
}

func (*SQLite) SetDefault

func (o *SQLite) SetDefault()

type TLSConfigPatcher

type TLSConfigPatcher interface {
	WithTLS(*tls.Config) error
}

Jump to

Keyboard shortcuts

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