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 ¶
func NewSqliteDriver ¶
func NewSqliteDriver(opt *option) (*SqliteDriver, error)
func (*SqliteDriver) Connection ¶
func (d *SqliteDriver) Connection() error
Click to show internal directories.
Click to hide internal directories.