boltDB

package
v0.0.0-...-2cc762e Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(tableName string) ([]map[string]interface{}, error)

func CloseDBConnection

func CloseDBConnection()

CloseDBConnection closes the database connection and releases the db so that other apps can use it

func Delete

func Delete(tableName string, itemID uint64) error

func InitDBConnection

func InitDBConnection(logger *log.Logger, tables ...string)

InitDBConnection initiates the connection with a database

func ManyByIntField

func ManyByIntField(tableName, fieldName string, fieldValue int) ([]map[string]interface{}, error)

func ManyByStringField

func ManyByStringField(tableName, fieldName, fieldValue string) ([]map[string]interface{}, error)

func Show

func Show(itemID uint64, tableName string) (map[string]interface{}, error)

func SingleByStringField

func SingleByStringField(tableName, fieldName, fieldValue string) (map[string]interface{}, uint64, error)

func Store

func Store(item map[string]interface{}, tableName string) (uint64, error)

func Update

func Update(item map[string]interface{}, tableName string, itemID uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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