sqlite3

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(env *Environment) dialects.Option

func Path

func Path(value string) dialects.Option

Types

type Builder

type Builder struct {
	Path string
}

func New

func New(options ...dialects.Option) *Builder

func (*Builder) Build

func (b *Builder) Build(user, password, host string, port int, dbname string) gorm.Dialector

func (*Builder) BuildDialector

func (b *Builder) BuildDialector(url string) gorm.Dialector

func (*Builder) BuildString

func (b *Builder) BuildString(user, password, host string, port int, dbname string) string

func (*Builder) Name

func (b *Builder) Name() string

type Environment

type Environment struct {
	Path string
}

func (*Environment) Build

func (env *Environment) Build(b *Builder)

Jump to

Keyboard shortcuts

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