Documentation ¶
Index ¶
- Constants
- func Float64ToStr(val float64) string
- func Int32ToStr(val int32) string
- func Int64ToStr(val int64) string
- func StrToFloat64(val string) (float64, error)
- func StrToInt32(val string) (int32, error)
- func StrToInt64(val string) (int64, error)
- type HelperRow
- func (this HelperRow) CleverString(key string) string
- func (this HelperRow) Int(key string) (val *int, err error)
- func (this HelperRow) Int64(key string) (val *int64, err error)
- func (this HelperRow) PInt(key string) *int
- func (this HelperRow) PInt64(key string) *int64
- func (this HelperRow) PString(key string) *string
- func (this HelperRow) String(key string) (*string, error)
- func (this HelperRow) ToJson() string
- type HelperTable
- type Querying
- type SqlHelper
- func (this SqlHelper) Close() error
- func (this SqlHelper) Exec(sql string, args ...interface{}) (sql.Result, error)
- func (this SqlHelper) Insert(sql string, args ...interface{}) (int64, error)
- func (this *SqlHelper) Open(connectionStr string) error
- func (this SqlHelper) QueryRow(sql string, args ...interface{}) (HelperRow, error)
- func (this SqlHelper) QueryRows(sql string, args ...interface{}) ([]HelperRow, error)
- func (this SqlHelper) QueryScalarInt(sql string, args ...interface{}) (int, error)
- func (this SqlHelper) QueryTable(sql string, args ...interface{}) (*HelperTable, error)
- func (this SqlHelper) Querying(sql string, args ...interface{}) (*Querying, error)
- func (this *SqlHelper) SetDB(conn *sql.DB)
- func (this SqlHelper) UpdateOrDel(sql string, args ...interface{}) (int64, error)
Constants ¶
View Source
const QUERY_BUFFER_SIZE = 20
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HelperRow ¶
type HelperRow map[string]interface{}
func (HelperRow) CleverString ¶
type HelperTable ¶ added in v0.0.2
type HelperTable struct {
// contains filtered or unexported fields
}
func NewTable ¶ added in v0.0.2
func NewTable(rows []HelperRow, columns []string) *HelperTable
func (HelperTable) Columns ¶ added in v0.0.2
func (this HelperTable) Columns() *[]string
func (HelperTable) Rows ¶ added in v0.0.2
func (this HelperTable) Rows() *[]HelperRow
type SqlHelper ¶
func (SqlHelper) QueryTable ¶ added in v0.0.2
func (this SqlHelper) QueryTable(sql string, args ...interface{}) (*HelperTable, error)
*
读取多行
Click to show internal directories.
Click to hide internal directories.