database

package
v0.0.0-...-28b05a4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqlInstance

func NewSqlInstance() (*sqlInstance, error)

This will initiate a new connection to a local Postgres database. Make sure to call "defer <instance>.Conn.Close()" afterwards.

Types

type Instance

type Instance struct {
	Conn *badger.DB
}

Instance is the instance that holds the database connection for BadgerDB

func NewInstance

func NewInstance() (*Instance, error)

Jump to

Keyboard shortcuts

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