localdb

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalDB

type LocalDB struct {
	// contains filtered or unexported fields
}

LocalDB is an object that manages a locally running database

func New

func New(lf LogFunc) *LocalDB

New returns a new LocalDB object. Run must be called to start the server.

func (*LocalDB) MustRun

func (ldb *LocalDB) MustRun()

MustRun starts the local database server or aborts the program with failure

func (*LocalDB) Stop

func (ldb *LocalDB) Stop()

Stop stops the local db server

type LogFunc

type LogFunc func(string, ...interface{})

LogFunc is a function that performs logging

Jump to

Keyboard shortcuts

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