table

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoTableBuilder

func ProtoTableBuilder(x proto.Message) *protoTableBuilder

func RegisterCustomType

func RegisterCustomType(i interface{}, name string)

func RegisterProtoType

func RegisterProtoType(m proto.Message)

func RegisterProtoTypeNamed

func RegisterProtoTypeNamed(name string)

func RegisteredName

func RegisteredName(t reflect.Type) string

func RegisteredType

func RegisteredType(name string) reflect.Type

func TableBuilder

func TableBuilder() *tableBuilder

Types

type Table

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

func (*Table) Index

func (t *Table) Index(name string) *TableIndex

func (*Table) NewRow

func (t *Table) NewRow(columnValues ...interface{}) *TableRows

func (*Table) Row

func (t *Table) Row(value ...interface{}) *TableRows

type TableCell

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

type TableCells

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

func (*TableCells) Get

func (c *TableCells) Get() (values [][]interface{}, err error)

func (*TableCells) Modify

func (c *TableCells) Modify(modifer func(interface{}) (interface{}, error)) error

func (*TableCells) Size

func (c *TableCells) Size() (rows int, cols int)

type TableColumn

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

type TableIndex

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

func (*TableIndex) Row

func (idx *TableIndex) Row(value ...interface{}) *TableRows

type TableIndexType

type TableIndexType int
const (
	NotIndexed TableIndexType = iota
	Primary
	Unique
	Nonunique
)

func (TableIndexType) String

func (idxType TableIndexType) String() string

type TableRow

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

type TableRows

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

func (*TableRows) Col

func (rows *TableRows) Col(names ...string) *TableCells

func (*TableRows) Delete

func (rows *TableRows) Delete() error

type TableValueIO

type TableValueIO interface {
	NewRow(dbGetter storage.DatabaseGetter, dbScanner storage.DatabaseScanner, dbPutter storage.DatabasePutter, dbDeleter storage.DatabaseDeleter, columnValues ...interface{}) (rowKey []byte, err error)
	DeleteRow(dbGetter storage.DatabaseGetter, dbScanner storage.DatabaseScanner, dbPutter storage.DatabasePutter, dbDeleter storage.DatabaseDeleter, rowKey []byte) error
	GetCellValue(dbGetter storage.DatabaseGetter, dbScanner storage.DatabaseScanner, rowKey []byte, columnIndex int) (interface{}, error)
	SetCellValue(dbGetter storage.DatabaseGetter, dbScanner storage.DatabaseScanner, dbPutter storage.DatabasePutter, dbDeleter storage.DatabaseDeleter, rowKey []byte, columnIndex int, columnValue interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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