mysql

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonbanDB

type MonbanDB struct {
	*sql.DB
	// contains filtered or unexported fields
}

func OpenMonbanDB

func OpenMonbanDB(dataSource string) (*MonbanDB, error)

OpenMonbanDB opens a new database connection with the specified driver and connection string.

func (*MonbanDB) Close

func (db *MonbanDB) Close() error

func (*MonbanDB) CreateUser

func (db *MonbanDB) CreateUser(u *monban.User) error

func (*MonbanDB) GetUser

func (db *MonbanDB) GetUser(name string) (*monban.User, error)

Jump to

Keyboard shortcuts

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