Documentation ¶
Index ¶
- func Decode(src string) string
- func Encode(src string) string
- func MsSQLOffsetLimit(offset, limit int) string
- func MsSQLTimeFormat(t interface{}) string
- func MsSQLTimeParse(s string) time.Time
- func NewStringSlice(len int, val string) []string
- func PrimaryComparator(a, b interface{}) int
- func SQLOffsetLimit(offset, limit int) string
- func SQLOrderBy(field string, revert bool) string
- func SQLWhere(conditions []string) string
- func SliceJoin(objs []interface{}, sep string) string
- func StringScan(str string, v interface{}) error
- func TimeFormat(t time.Time) string
- func TimeParse(s string) time.Time
- func TimeParseLocalTime(s string) time.Time
- func TimeToLocalTime(c time.Time) string
- func ToFloat64(value interface{}) (float64, error)
- type DB
- type DBStore
- func (store *DBStore) BeginTx() (*DBTx, error)
- func (store *DBStore) Close() error
- func (store *DBStore) Debug(b bool)
- func (store *DBStore) Exec(sql string, args ...interface{}) (sql.Result, error)
- func (store *DBStore) Query(sql string, args ...interface{}) (*sql.Rows, error)
- func (store *DBStore) SetError(err error)
- func (store *DBStore) SlowLog(duration time.Duration)
- type DBTx
- type FieldIN
- type RedisStore
- func NewRedisClient(host string, port int, password string, db int) (*RedisStore, error)
- func NewRedisClusterClient(opt *redis.ClusterOptions) (*RedisStore, error)
- func NewRedisFailoverClient(failoverOpt *redis.FailoverOptions) (*RedisStore, error)
- func NewRedisRingClient(opt *redis.RingOptions) (*RedisStore, error)
- type VSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MsSQLOffsetLimit ¶
func MsSQLTimeFormat ¶
func MsSQLTimeFormat(t interface{}) string
func MsSQLTimeParse ¶
func NewStringSlice ¶
func PrimaryComparator ¶
func PrimaryComparator(a, b interface{}) int
func SQLOffsetLimit ¶
func SQLOrderBy ¶
func StringScan ¶
func TimeFormat ¶
func TimeParseLocalTime ¶
func TimeToLocalTime ¶
Types ¶
type DBStore ¶
func NewDBStore ¶
func NewDBStoreCharset ¶ added in v1.0.3
type FieldIN ¶ added in v1.0.4
type FieldIN struct { Field string Params []interface{} // contains filtered or unexported fields }
func NewFieldIN ¶ added in v1.0.4
type RedisStore ¶
func NewRedisClient ¶
func NewRedisClusterClient ¶
func NewRedisClusterClient(opt *redis.ClusterOptions) (*RedisStore, error)
func NewRedisFailoverClient ¶
func NewRedisFailoverClient(failoverOpt *redis.FailoverOptions) (*RedisStore, error)
func NewRedisRingClient ¶
func NewRedisRingClient(opt *redis.RingOptions) (*RedisStore, error)
Click to show internal directories.
Click to hide internal directories.