mysqlstore

package
v0.0.0-...-4b0ee74 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Db *gorm.DB

Functions

func Close

func Close()

func New

func New(conf *Config) error

func Wheres

func Wheres(db *gorm.DB, filters ...*Filter) *gorm.DB

Types

type Config

type Config struct {
	DSN     string `yaml:"dsn"`
	Level   string `yaml:"level"`
	MaxConn int    `yaml:"max_conn"`
	MaxOpen int    `yaml:"max_open"`
	Timeout int64  `yaml:"timeout"`
}

type Filter

type Filter struct {
	Query interface{}
	Args  []interface{}
}

Jump to

Keyboard shortcuts

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