Print hashes as well in postgres mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-01-16 02:55:46 +01:00
parent 8db91fbdda
commit 87111da15e

View file

@ -98,6 +98,8 @@ func PostgresHashFileResult(result *HashFileResult, settings PostgresSettings) {
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, result.Path, "SQL Error: ", err) fmt.Fprintln(os.Stderr, result.Path, "SQL Error: ", err)
} else {
fmt.Println(result.SHA256, result.MD5, result.Path)
} }
if rows != nil { if rows != nil {
rows.Close() rows.Close()