tablestore

package
v0.0.0-...-fe13e1c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EBadRowFormat = errors.New("Bad Row Format")
	EBadKeyFormat = errors.New("Bad Key Format")

	EDuplicateKey = errors.New("Duplicate Key")

	ENullConstraint = errors.New("Null Constraint Error")
)

Functions

func LoadDatabase

func LoadDatabase(db_name string, tx lstore.UDB) (sql.Database, error)

Types

type SimpleTable

type SimpleTable struct {
	UDB lstore.UDB

	InnerName  string
	ItsName    string
	ItsSchema  sql.Schema
	PrimaryKey int
	PKName     string
	// contains filtered or unexported fields
}

func (*SimpleTable) GenerateLookupHint

func (s *SimpleTable) GenerateLookupHint(ctx *sql.Context, filter eplan.TableRowFilter) (hint interface{}, _ error)

func (*SimpleTable) GetSubsetTable

func (s *SimpleTable) GetSubsetTable(ctx *sql.Context, hint interface{}, filter eplan.TableRowFilter) (sql.Table, error)

func (*SimpleTable) Insert

func (s *SimpleTable) Insert(ctx *sql.Context, row sql.Row) error

func (*SimpleTable) IsPrimaryKey

func (s *SimpleTable) IsPrimaryKey(column string) bool

func (*SimpleTable) Name

func (s *SimpleTable) Name() string

func (*SimpleTable) PartitionRows

func (s *SimpleTable) PartitionRows(c *sql.Context, _ sql.Partition) (sql.RowIter, error)

func (*SimpleTable) Partitions

func (s *SimpleTable) Partitions(c *sql.Context) (sql.PartitionIter, error)

func (*SimpleTable) Schema

func (s *SimpleTable) Schema() sql.Schema

func (*SimpleTable) String

func (s *SimpleTable) String() string

type TableMetadata

type TableMetadata struct {
	Master     schema.TableMasterMetadata
	Format     string
	PrimaryKey []int
}

func NewTableMetadata

func NewTableMetadata(llmd *schema.TableMasterMetadata) (md *TableMetadata, _ error)

func TableMetadataFromSql

func TableMetadataFromSql(sql sqlparser.Statement) (md *TableMetadata, _ error)

func TableMetadataFromSqlText

func TableMetadataFromSqlText(sql string) (md *TableMetadata, _ error)

func (*TableMetadata) StoreInto

func (tmd *TableMetadata) StoreInto(udb lstore.UDB) error

Jump to

Keyboard shortcuts

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