Documentation ¶
Index ¶
- type Conn
- func (conn *Conn) Close()
- func (conn *Conn) Connect(dbhost string, dbport string, database string, user string, password string) bool
- func (conn *Conn) Excute(sql string, args ...interface{}) (sql.Result, bool)
- func (conn *Conn) Query(sql string, args ...interface{}) ([]map[string]string, bool)
- func (conn *Conn) QueryNum(sql string, args ...interface{}) int64
- func (conn *Conn) QueryStringOne(sql string, args ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn truct
func (*Conn) Connect ¶
func (conn *Conn) Connect(dbhost string, dbport string, database string, user string, password string) bool
Connect Connect to database
func (*Conn) QueryStringOne ¶
QueryStringOne return string result
Click to show internal directories.
Click to hide internal directories.