hashdb

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_NAME        string = "gbitrot.db"
	DB_TX_INTERVAL int64  = 3
)

Variables

This section is empty.

Functions

func CalcFileSHA256

func CalcFileSHA256(path string) *string

func DbDelHash

func DbDelHash(tx *sql.Tx, path string)

func DbFindHash

func DbFindHash(tx *sql.Tx, hash string) *sql.Rows

func DbFindPath

func DbFindPath(tx *sql.Tx, path string) (*string, *int64)

func DbGetCurrentTx

func DbGetCurrentTx() *sql.Tx

func DbInsertHash

func DbInsertHash(tx *sql.Tx, path string, hash string, mtime int64)

func DbListPaths

func DbListPaths(tx *sql.Tx) *[]string

func DbOpen

func DbOpen() *sql.DB

func DbTxCommitMaybe

func DbTxCommitMaybe(db *sql.DB, final_commit bool)

func DbUpdateHash

func DbUpdateHash(tx *sql.Tx, path string, hash string, mtime int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL