Discover Packages
github.com/vocdoni/census3
db
package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Feb 21, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Known issues
Bindings generation with sqlc
Censuses
table generated bindings are wrongly named Censuse
. For now change this manually when regenerating the bindings.
In sqlc.yaml
some tables with composed names like TokenHolders
are changed to lower-case tokenholders
for sqlc compatibility.
Expand ▾
Collapse ▴
Documentation
¶
DB struct abstact a safe connection with the database using sqlc queries,
sqlite as a database engine and go-sqlite3 as a driver.
Init function starts a database using the data path provided as argument. It
opens two different connections, one for read only, and another for read and
write, with different configurations, optimized for each use case.
Close function stops all internal connections to the database
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.