buntdbKit

package
v3.0.58 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemoryPath = ":memory:"
)

Variables

This section is empty.

Functions

func Open

func Open(path string) (*buntdb.DB, error)

Open

@param 存储数据的文件路径 (1) 会自动创建父目录

(2) It will be created if it doesn't exist.

func OpenInMemory

func OpenInMemory() (*buntdb.DB, error)

OpenInMemory 不会持久化到磁盘上.

PS: 读写更快.

Types

This section is empty.

Jump to

Keyboard shortcuts

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