util

package
v0.0.0-...-a0af445 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProtoSqlNil = errors.New("Cannot scan nil into ProtoSql")
View Source
var ErrProtoSqlUnknownType = errors.New("Unknown type in ProtoSql")

Functions

func MigrateMySQL

func MigrateMySQL(ctx context.Context, dsn string, stmt string) error

func OpenMySQLWithMultiStatements

func OpenMySQLWithMultiStatements(dsn string) (*sql.DB, error)

func RandomString

func RandomString(n int) string

Types

type ProtoSql

type ProtoSql struct {
	Message proto.Message
}

func (ProtoSql) Scan

func (s ProtoSql) Scan(src interface{}) error

func (ProtoSql) Value

func (s ProtoSql) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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