Documentation ¶
Index ¶
- Variables
- func Atoi(s string) (result int)
- func CheckErr(err error)
- func CreateDB() (err error)
- func DateAdd(date string, days int) (result string)
- func Exec(e Execer, sql string, args ...interface{})
- func ExecMany(e Execer, sql string, scanner Scanner)
- func Export()
- func Load()
- func NextDay(date string) string
- func Open() (db sqlite3.DB)
- func PrevDay(date string) string
- func Query(sql string)
- func ReadAll(file *zip.File, isGbk bool) (data []byte, err error)
- func Split(bytes []byte, list []int) (result []string)
- func SplitData(bytes []byte, offsets []int, columns []int) (result []string)
- type Execer
- type Reader
- func (r *Reader) CheckFileList() (result bool)
- func (r *Reader) ChongZheng(tx Execer)
- func (r *Reader) Close() error
- func (r *Reader) LoadACOMA(path *zip.File, tx Execer)
- func (r *Reader) LoadAFCP(path *zip.File, tx Execer)
- func (r *Reader) LoadEve(tx Execer)
- func (r *Reader) LoadICOMN(path *zip.File, tx Execer)
- func (r *Reader) LoadIERR(path *zip.File, tx Execer)
- func (r *Reader) LoadITFL(path *zip.File, tx Execer)
- func (r *Reader) LoadInds(tx Execer)
- func (r *Reader) LoadJorj(tx Execer)
- func (r *Reader) LoadRd1002(tx Execer)
- func (r *Reader) LoadTrac(tx Execer)
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var COMA = []int{0, 11, 23, 30, 41, 61, 74, 88, 100, 105, 112, 117, 126, 142, 155, 158,
165, 177, 184, 187, 191, 204, 217, 230, 232, 236, 238, 240, 251, 263, 265,
268, 272, 285, 299, 311, 327, 332, 335, 376, 381, 390, 413, 422, 434, 457,
479, 488, 500, 523, 545, 567, 589, 611, 621, 631, 641, 650, 673, 714}
COMA coma 文件分割
View Source
var COMAR = []int{2, 3, 57, 5, 8, 9, 17, 27}
COMAR coma
View Source
var CreateSQL string = `` /* 1787-byte string literal not displayed */
CreateSQL 创建数据库语句
View Source
var Home string
Home 本程序的家目录
Functions ¶
Types ¶
type Execer ¶
type Execer interface { Exec(string, ...interface{}) (sql.Result, error) Prepare(string) (*sql.Stmt, error) Query(string, ...interface{}) (*sql.Rows, error) }
Execer 可以执行语句
Click to show internal directories.
Click to hide internal directories.