mysql

package
v0.0.0-...-a14fa2b Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNoRows -
	ErrNoRows = errors.New("there is no such data in database")
)

Functions

func CreateTable

func CreateTable(db *sql.DB) error

CreateTable create files table.

func DeleteByPath

func DeleteByPath(db *sql.DB, path string) error

Delete Clear the records of file so file could reupload.

func Insert

func Insert(db *sql.DB, userID uint64, path, md5 string) error

Insert insert a file

func QueryByMD5

func QueryByMD5(db *sql.DB, md5 string) (string, error)

QueryByMD5 select by MD5

Types

This section is empty.

Jump to

Keyboard shortcuts

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