idblib

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

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 21 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDB

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

func New

func New(databasePath string, logger util.Logger, metricsReceiver *metric.Receiver, cacheSize uint, ready func()) (*IDB, error)

func (*IDB) CreateDatabase

func (i *IDB) CreateDatabase(name string) (response.CreateDatabaseResponse, error)

func (*IDB) CreateTableInDatabase

func (i *IDB) CreateTableInDatabase(name string, tableName string, fields map[string]field.Field, options request.TableOptions) (response.CreateTableInDatabaseResponse, error)

func (*IDB) DeleteDatabase

func (i *IDB) DeleteDatabase(name string) (response.DeleteDatabaseResponse, error)

func (*IDB) DeleteTableInDatabase

func (i *IDB) DeleteTableInDatabase(name string, tableName string) (response.DeleteTableInDatabaseResponse, error)

func (*IDB) GetDatabase

func (i *IDB) GetDatabase(name string) (response.GetDatabaseResponse, error)

func (*IDB) GetDatabaseTable

func (i *IDB) GetDatabaseTable(name string, tableName string) (response.GetDatabaseTableResponse, error)

func (*IDB) GetDatabases

func (i *IDB) GetDatabases() (response.GetDatabasesResponse, error)

func (*IDB) GetFromDatabaseTable

func (i *IDB) GetFromDatabaseTable(name string, tableName string, request table.Request) (response.GetFromDatabaseTableResponse, error)

func (*IDB) InsertToDatabaseTable

func (i *IDB) InsertToDatabaseTable(name string, tableName string, object map[string]json.RawMessage) (response.InsertToDatabaseTableResponse, error)

func (*IDB) Kill

func (i *IDB) Kill()

func (*IDB) RemoveFromDatabaseTable

func (i *IDB) RemoveFromDatabaseTable(name string, tableName string, request table.Request) (response.RemoveFromDatabaseTableResponse, error)

func (*IDB) UpdateInDatabaseTable

func (i *IDB) UpdateInDatabaseTable(name string, tableName string, object map[string]json.RawMessage) (response.UpdateInDatabaseTableResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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