Documentation
¶
Index ¶
- 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 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) 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HelperRow ¶
type HelperRow map[string]interface{}
func (*HelperRow) CleverString ¶
Click to show internal directories.
Click to hide internal directories.