immudb

package
v0.0.0-...-d166ee1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigs

func NewConfigs(cli immudb.ImmuClient) *configs

func SetupJsonKVRepository

func SetupJsonKVRepository(cli immudb.ImmuClient, collection string, indexedKeys []string) error

func SetupJsonSQLRepository

func SetupJsonSQLRepository(cli immudb.ImmuClient, collection string, primaryKey string, columns []string) error

Types

type Config

type Config struct {
	Parser  string
	Type    string
	Indexes []string
}

type History

type History struct {
	Entry    []byte
	TxID     uint64
	Revision uint64
}

type JsonKVRepository

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

func NewJsonKVRepository

func NewJsonKVRepository(cli immudb.ImmuClient, collection string) (*JsonKVRepository, error)

func (*JsonKVRepository) History

func (imo *JsonKVRepository) History(primaryKeyValue string) ([]History, error)

func (*JsonKVRepository) Read

func (jr *JsonKVRepository) Read(key string, prefix string) ([][]byte, error)

for now just based on SK

func (*JsonKVRepository) Write

func (jr *JsonKVRepository) Write(jObject interface{}) (uint64, error)

func (*JsonKVRepository) WriteBytes

func (jr *JsonKVRepository) WriteBytes(jBytes []byte) (uint64, error)

type JsonSQLRepository

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

func NewJsonSQLRepository

func NewJsonSQLRepository(cli immudb.ImmuClient, collection string) (*JsonSQLRepository, error)

func (*JsonSQLRepository) History

func (jr *JsonSQLRepository) History(query string) ([][]byte, error)

func (*JsonSQLRepository) Read

func (jr *JsonSQLRepository) Read(query string) ([][]byte, error)

func (*JsonSQLRepository) Write

func (jr *JsonSQLRepository) Write(jObject interface{}) (uint64, error)

func (*JsonSQLRepository) WriteBytes

func (jr *JsonSQLRepository) WriteBytes(jBytes []byte) (uint64, error)

Jump to

Keyboard shortcuts

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