db

package
v0.0.0-...-6a5ced3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(query string, args ...any) (sql.Result, error)

Exec is an intermediary function to handle database queries on behalf of other packages in this application without returning rows

func Init

func Init(host, database, user, passwd string) error

Init accepts authentication parameters for a mysql db and creates a client This function may also be configured to create tables in the db on behalf of the application for setup purposes.

func Query

func Query(query string, args ...any) (*sql.Rows, error)

Query is an intermediary function to handle database queries on behalf of other packages in this application

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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