Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteUpdateTime(baseTime time.Time, offset *durationpb.Duration) time.Time
- func FromSQLiteValue(s *v1proto.SQLiteValue) interface{}
- func MergeRows(_ interface{}, t1 time.Time, r1 *v1proto.Row, t2 time.Time, r2 *v1proto.Row, ...) *v1proto.Row
- func ToColumnValue(i interface{}) *v1proto.ColumnValue
- func UpdateTime(baseTime time.Time, cv *v1proto.ColumnValue) time.Time
- func Vacuum(ctx context.Context, tableName string, beforeTime time.Time) error
- type Cursor
- type IndexInput
- type IndexOutput
- type KV
- type Key
- type Module
- type Op
- type OrderInput
- type S3Options
- type VirtualTable
- func (c *VirtualTable) Begin(ctx context.Context) error
- func (c *VirtualTable) BestIndex(input []IndexInput, order []OrderInput) (*IndexOutput, error)
- func (c *VirtualTable) Commit(ctx context.Context) error
- func (c *VirtualTable) Delete(ctx context.Context, key interface{}) error
- func (c *VirtualTable) Disconnect() error
- func (c *VirtualTable) Insert(ctx context.Context, values map[int]interface{}) (int64, error)
- func (c *VirtualTable) Open() (*Cursor, error)
- func (c *VirtualTable) Rollback() error
- func (c *VirtualTable) Update(ctx context.Context, key interface{}, values map[int]interface{}) error
Constants ¶
View Source
const ( OpIgnore = iota OpEQ OpLT OpLE OpGE OpGT )
View Source
const SQLiteTimeFormat = "2006-01-02 15:04:05"
Variables ¶
View Source
var ErrS3DBConstraintNotNull = errors.New("constraint: NOT NULL")
View Source
var ErrS3DBConstraintPrimaryKey = errors.New("constraint: key not unique")
View Source
var ErrS3DBConstraintUnique = errors.New("constraint: not unique")
Functions ¶
func DeleteUpdateTime ¶
func FromSQLiteValue ¶
func FromSQLiteValue(s *v1proto.SQLiteValue) interface{}
func ToColumnValue ¶
func ToColumnValue(i interface{}) *v1proto.ColumnValue
func UpdateTime ¶
Types ¶
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
type IndexInput ¶
type IndexOutput ¶
type Key ¶
type Key struct {
*v1proto.SQLiteValue
}
type OrderInput ¶
type VirtualTable ¶
type VirtualTable struct { Name string SchemaString string ColumnIndexByName map[string]int ColumnNameByIndex map[int]string Tree *KV KeyCol int S3Options S3Options // contains filtered or unexported fields }
func GetTable ¶
func GetTable(name string) *VirtualTable
func (*VirtualTable) BestIndex ¶
func (c *VirtualTable) BestIndex(input []IndexInput, order []OrderInput) (*IndexOutput, error)
func (*VirtualTable) Delete ¶
func (c *VirtualTable) Delete(ctx context.Context, key interface{}) error
func (*VirtualTable) Disconnect ¶
func (c *VirtualTable) Disconnect() error
func (*VirtualTable) Open ¶
func (c *VirtualTable) Open() (*Cursor, error)
func (*VirtualTable) Rollback ¶
func (c *VirtualTable) Rollback() error
Directories
¶
Path | Synopsis |
---|---|
Package kv turns your S3 bucket into a diffable serverless key-value store.
|
Package kv turns your S3 bucket into a diffable serverless key-value store. |
Click to show internal directories.
Click to hide internal directories.