db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(user string, pass string, schema string) (*sql.DB, error)

Init the database connection

func Prepare

func Prepare(query string) *sql.Stmt

Prepare query to be executed

func Query

func Query(query string) *sql.Rows

Query to mysql

func QueryRow

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

QueryRow to mysql

Types

This section is empty.

Jump to

Keyboard shortcuts

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