Discover Packages
github.com/alexhokl/database
package
module
Version:
v0.0.0-...-7873c2a
Opens a new window with list of versions in this module.
Published: Aug 9, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
database
Go library for SQL database access
Expand ▾
Collapse ▴
Documentation
¶
DumpTables prints the specified tables to standard output stream
GetConnection returns a SQL database connection
func GetValue(pval *interface{}) string
GetValue returns a typed value from a cell reference
type Config struct {
Server string `yaml:"server" json:"server"`
Port int `yaml:"port" json:"port"`
Username string `yaml:"username" json:"username"`
Password string `yaml:"password" json:"password"`
Name string `yaml:"name" json:"name"`
}
Config struct
type TableData struct {
Rows [][]interface{}
Columns []string
}
TableData struct
GetData returns data retrieved by using query with conn
Source Files
¶
Click to show internal directories.
Click to hide internal directories.