Documentation ¶
Index ¶
- Constants
- func CalcFileSHA256(path string) *string
- func DbDelHash(tx *sql.Tx, path string)
- func DbFindHash(tx *sql.Tx, hash string) *sql.Rows
- func DbFindPath(tx *sql.Tx, path string) (*string, *int64)
- func DbGetCurrentTx() *sql.Tx
- func DbInsertHash(tx *sql.Tx, path string, hash string, mtime int64)
- func DbListPaths(tx *sql.Tx) *[]string
- func DbOpen() *sql.DB
- func DbTxCommitMaybe(db *sql.DB, final_commit bool)
- func DbUpdateHash(tx *sql.Tx, path string, hash string, mtime int64)
Constants ¶
View Source
const ( DB_NAME string = "gbitrot.db" DB_TX_INTERVAL int64 = 3 )
Variables ¶
This section is empty.
Functions ¶
func CalcFileSHA256 ¶
func DbGetCurrentTx ¶
func DbListPaths ¶
func DbTxCommitMaybe ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.