Class: Sqlite

@bldr/songbook-intermediate-files~Sqlite

Sqlite database wrapper to store file contents hashes to detect file modifications.

new Sqlite (dbFile)

Name Type Description
dbFile string

The path of the Sqlite database.

Members

db module:@bldr/songbook-intermediate-files~Sqlite3

A instance of the class “Sqlite3”.

dbFile string

The path of the Sqlite database.

Methods

flush ()

Delete all rows from the table “hashes”.

insert (filename, hash)

Insert a hash value of a file.

Name Type Description
filename string

Name or path of a file.

hash string

The sha1 hash of the content of the file.

select (filename)

Get the hast value of a file.

Name Type Description
filename string

Name or path of a file.

update (filename, hash)

Update the hash value of a file.

Name Type Description
filename string

Name or path of a file.

hash string

The sha1 hash of the content of the file.