sqlite

package module
v0.0.0-...-8585d0b Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOption = option{

	ParseTime: true,
	// contains filtered or unexported fields
}

Functions

func NewOption

func NewOption(options ...OptionFunc) *option

Types

type OptionFunc

type OptionFunc = func(o *option)

func WithDbName

func WithDbName(dbname string) OptionFunc

func WithLoggerLevel

func WithLoggerLevel(l logger.LogLevel) OptionFunc

func WithLoggerOut

func WithLoggerOut(w io.Writer) OptionFunc

type SqliteDriver

type SqliteDriver struct {
	*gorm.DB
	// contains filtered or unexported fields
}

func NewSqliteDriver

func NewSqliteDriver(opt *option) (*SqliteDriver, error)

func (*SqliteDriver) Connection

func (d *SqliteDriver) Connection() error

Jump to

Keyboard shortcuts

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