Documentation ¶
Index ¶
- Variables
- func LoadDatabase(db_name string, tx lstore.UDB) (sql.Database, error)
- type SimpleTable
- func (s *SimpleTable) GenerateLookupHint(ctx *sql.Context, filter eplan.TableRowFilter) (hint interface{}, _ error)
- func (s *SimpleTable) GetSubsetTable(ctx *sql.Context, hint interface{}, filter eplan.TableRowFilter) (sql.Table, error)
- func (s *SimpleTable) Insert(ctx *sql.Context, row sql.Row) error
- func (s *SimpleTable) IsPrimaryKey(column string) bool
- func (s *SimpleTable) Name() string
- func (s *SimpleTable) PartitionRows(c *sql.Context, _ sql.Partition) (sql.RowIter, error)
- func (s *SimpleTable) Partitions(c *sql.Context) (sql.PartitionIter, error)
- func (s *SimpleTable) Schema() sql.Schema
- func (s *SimpleTable) String() string
- type TableMetadata
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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) IsPrimaryKey ¶
func (s *SimpleTable) IsPrimaryKey(column string) bool
func (*SimpleTable) Name ¶
func (s *SimpleTable) Name() string
func (*SimpleTable) PartitionRows ¶
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)
Click to show internal directories.
Click to hide internal directories.