Documentation ¶
Overview ¶
Package data 数据库/数据处理相关工具
Index ¶
- func Bytes2str(b []byte) string
- func DownloadTo(url, file string) error
- func Max(a, b int) int
- func Min(a, b int) int
- func Str2bytes(s string) []byte
- type Sqlite
- func (db *Sqlite) Count(table string) (num int, err error)
- func (db *Sqlite) Create(table string, objptr interface{}) (err error)
- func (db *Sqlite) Del(table string, condition string) (err error)
- func (db *Sqlite) Find(table string, objptr interface{}, condition string) (err error)
- func (db *Sqlite) Insert(table string, objptr interface{}) (err error)
- func (db *Sqlite) ListTables() (s []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadTo ¶ added in v1.1.6
Types ¶
type Sqlite ¶
Sqlite 数据库对象
func (*Sqlite) ListTables ¶
ListTables 列出所有表名 返回所有表名+错误
Click to show internal directories.
Click to hide internal directories.