database

package
v0.0.0-...-bda9561 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*sql.DB
}

func CreateDatabase

func CreateDatabase(dataSourceName string) (*Database, error)

CreateDatabase creates a local SQLite3 database

func (*Database) AddRootHash

func (db *Database) AddRootHash(ReceiptId string, RootHash []byte) error

AddRootHash adds root hashes to the database

func (*Database) GetRootHash

func (db *Database) GetRootHash(receiptId string) (string, error)

GetRootHash retrieves the root hash associated with a given receipt ID

Jump to

Keyboard shortcuts

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