package
Version:
v0.0.0-...-28b05a4
Opens a new window with list of versions in this module.
Published: Jul 20, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewSqlInstance() (*sqlInstance, error)
This will initiate a new connection to a local Postgres database. Make sure to call "defer <instance>.Conn.Close()" afterwards.
type Instance struct {
Conn *badger.DB
}
Instance is the instance that holds the database connection for BadgerDB
Source Files
¶
Click to show internal directories.
Click to hide internal directories.