Discover Packages
github.com/mzzsml/minerva
internal
storage
package
Version:
v0.0.0-...-e4f51fb
Opens a new window with list of versions in this module.
Published: Mar 22, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewConnectionPool opens a connection to the SQLite database, and returns a
connection pool or an error;
type DB struct {
Pool *sql .DB
}
DB holds the connecton pool.
Using this struct it's possible to query the db without the need of
reautentication every time.
NewDb creates a new Db instance.
func (d DB ) GetHosts() ([]host, error )
GetHosts queries the `host` table and returns a list of Host (which is
different than nparse.Host, and it just holds the hosts' ids and ipv4 addresses).
InsertHosts inserts a new host in the database.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.