gormx

package module
v0.0.0-...-b3cad7b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 8 Imported by: 0

README

Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToSql

func BytesToSql(bs []byte) string

func InitGormMysql

func InitGormMysql(conf *Conf) (*gorm.DB, error)

func Select

func Select(v interface{}) []string

Types

type Conf

type Conf struct {
	Dsn     string
	Mysql   *mysql.Config
	Gorm    *gorm.Config
	MaxIdle int
	MaxOpen int
}

type WindowSelectClause

type WindowSelectClause struct {
	Expr      string
	Name      string
	Partition string
	Order     string
	FrameSpec string
	As        string
}

func (*WindowSelectClause) String

func (c *WindowSelectClause) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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