db

package
v0.0.0-...-bdd2e6f Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Table Name
	WordsTN     = "words"
	UsersTN     = "users"
	FavoritesTN = "favorites"
)

Variables

View Source
var (
	ErrInvalidDatabase = errors.New("invalid database")
)

Functions

func Close

func Close() error

func Exec

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

func Query

func Query(query string, args ...interface{}) (*sql.Rows, error)

Query

func QueryRow

func QueryRow(query string, args ...interface{}) *sql.Row

Types

This section is empty.

Jump to

Keyboard shortcuts

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