xstorage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XDB

type XDB struct {
	DBPath string `json:"dbPath"`
	DBFile string `json:"dbFile"`
	// contains filtered or unexported fields
}

func CreateXDB

func CreateXDB() *XDB

CreateXDB 创建数据库对象

func (*XDB) Del

func (x *XDB) Del(key string, field ...string) error

Del 删除操作

func (*XDB) DelList

func (x *XDB) DelList(key, field string, index ...int) error

DelList 删除列表操作

func (*XDB) Get

func (x *XDB) Get(key, field string) *gvar.Var

Get 获取指定数据

func (*XDB) GetGJson

func (x *XDB) GetGJson() *gjson.Json

GetGJson 获取 gf json 操作对象

func (*XDB) GetJsonStr

func (x *XDB) GetJsonStr() string

GetJsonStr 获取存储的json字符串

func (*XDB) Set

func (x *XDB) Set(key, field string, data any) error

Set 新增操作

func (*XDB) SetList

func (x *XDB) SetList(key, field string, data any) error

Jump to

Keyboard shortcuts

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