mysql

package
v0.0.0-...-d2accc8 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(db *sql.DB) error

func Connect

func Connect() (*sql.DB, error)

func CreateDataBase

func CreateDataBase(db *sql.DB) error

func CreateTables

func CreateTables(db *sql.DB) error

func InsertAction

func InsertAction(db *sql.DB, videoId int64, typeId int64, userId int64, time int, start int, end int) error

func InsertActionType

func InsertActionType(db *sql.DB, name string) (int64, error)

func InsertUser

func InsertUser(db *sql.DB, password string, udid int64, uoid int64) (int64, error)

func InsertUserDevice

func InsertUserDevice(db *sql.DB, device string) (int64, error)

func InsertUserOS

func InsertUserOS(db *sql.DB, os string) (int64, error)

func InsertVideo

func InsertVideo(db *sql.DB, name string, typeId int64) (int64, error)

func InsertVideoType

func InsertVideoType(db *sql.DB, name string) (int64, error)

func Open

func Open() (*sql.DB, error)

func SelectActionTypeById

func SelectActionTypeById(db *sql.DB, id int) (string, error)

func SelectActionTypeByName

func SelectActionTypeByName(db *sql.DB, name string) (int, error)

func SelectDataBase

func SelectDataBase(db *sql.DB) error

func SelectUser

func SelectUser(db *sql.DB, id int64) (string, error)

func SelectUserDevice

func SelectUserDevice(db *sql.DB, device string) (int64, error)

func SelectUserOS

func SelectUserOS(db *sql.DB, os string) (int64, error)

func SelectVideoId

func SelectVideoId(db *sql.DB, name string) (int64, error)

func SelectVideoType

func SelectVideoType(db *sql.DB, name string) (int64, error)

func ValidateUser

func ValidateUser(db *sql.DB, id int64, password string) error

func ValidateUserByStr

func ValidateUserByStr(db *sql.DB, id string, password string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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