maria

package
v1.4.3-RC Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger = zap.L().Named("Maria")
)

Functions

func Connect

func Connect(url string)

Connect 连接至 Maria 数据库

func Exec

func Exec(query string, args ...interface{}) (sql.Result, error)

Exec executes a query without returning any rows. The args are for any placeholder parameters in the query.

func Select

func Select(dest interface{}, query string, args ...interface{}) error

Select using this db. Any placeholder parameters are replaced with supplied args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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