mysql

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context wraps a database connection to make certain queries easier.

func GetContext

func GetContext(username, password, url, database string) (*Context, error)

func (*Context) GetPrimaryKeyColumns

func (c *Context) GetPrimaryKeyColumns(tableName string) (map[string]bool, error)

func (*Context) MapTableTypes

func (c *Context) MapTableTypes(tableName string) (map[string]string, error)

Jump to

Keyboard shortcuts

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