Documentation ¶
Overview ¶
Package sqldb - handles the database inside the system.
Package sqldb - handles the database inside the system.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlDB ¶
type SqlDB interface { // Exec runs database dml insert/update/delete, or ddl create/alter Exec(statement string, parameters ...interface{}) (res sql.Result, err error) // Query runs a database queriy Query(statement string, parameters ...interface{}) (res *sql.Rows, err error) }
SqlDB represents the database.
func NewSqlDBImplV1 ¶
SqlDBImplV1 returns a SqlDBImplV1
Example ¶
os.Setenv("DOCKER_NAME", "utest01") _, err := NewSqlDBImplV1() fmt.Println(err) os.Setenv("DOCKER_NAME", "") _, err = NewSqlDBImplV1() fmt.Println(err)
Output: <nil> <nil>
type SqlDBImplV1 ¶
SqlDBImplV1 implements the SqlDB interface, it is a version for RDBMS.
Click to show internal directories.
Click to hide internal directories.