database

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package database allows you to store values in the file.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOpenDB     = &SDatabaseError{"open database"}
	ErrSetValueDB = &SDatabaseError{"set value to database"}
	ErrGetValueDB = &SDatabaseError{"get value from database"}
	ErrDelValueDB = &SDatabaseError{"del value from database"}
	ErrNotFound   = &SDatabaseError{"value not found"}
	ErrCloseDB    = &SDatabaseError{"close database"}
)

Functions

This section is empty.

Types

type IKVDatabase added in v1.5.10

type IKVDatabase interface {
	io.Closer

	Set([]byte, []byte) error
	Get([]byte) ([]byte, error)
	Del([]byte) error
}

func NewKVDatabase added in v1.5.23

func NewKVDatabase(pPath string) (IKVDatabase, error)

type SDatabaseError added in v1.6.18

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

func (*SDatabaseError) Error added in v1.6.18

func (err *SDatabaseError) Error() string

Jump to

Keyboard shortcuts

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