database

package module
v0.0.0-...-0554481 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDatabase

type IDatabase struct {
	// Creates a new table in the database.
	CreateTable func()
	// Adds a number in the database to the provided key-value.
	Add func(key string, value int)
	// Removes all the keys from the database.
	Clear func() bool
	// Deletes the provided key from the database.
	Delete func(key string) bool
	// Retrieves data from the provided key from the database.
	Get func(key string) any
	// Sets a value for the provided key in the database.
	Set func(key string, value any)
	// Substracts a number in the database to the provided key-value.
	Substract func(key string, value int)
}

func Database

func Database(table string) *IDatabase

Jump to

Keyboard shortcuts

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