Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteUpdateTime(baseTime time.Time, offset *durationpb.Duration) time.Time
- 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(tableName string, beforeTime time.Time) error
- type Cursor
- type IndexInput
- type IndexOutput
- type KV
- type Key
- type Module
- type Op
- type OrderInput
- type VirtualTable
- func (c *VirtualTable) Begin() error
- func (c *VirtualTable) BestIndex(input []IndexInput, order []OrderInput) (*IndexOutput, error)
- func (c *VirtualTable) Commit() error
- func (c *VirtualTable) Delete(key interface{}) error
- func (c *VirtualTable) Disconnect() error
- func (c *VirtualTable) Insert(values map[int]interface{}) (int64, error)
- func (c *VirtualTable) Open() (*Cursor, error)
- func (c *VirtualTable) Rollback() error
- func (c *VirtualTable) Update(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 ToColumnValue ¶
func ToColumnValue(i interface{}) *v1proto.ColumnValue
func UpdateTime ¶
Types ¶
type IndexInput ¶
type IndexOutput ¶
type Key ¶
type Key struct {
*v1proto.SQLiteValue
}
type OrderInput ¶
type VirtualTable ¶
type VirtualTable struct {
Name string
Ctx context.Context
SchemaString string
ColumnIndexByName map[string]int
ColumnNameByIndex map[int]string
Tree *KV
// contains filtered or unexported fields
}
func GetTable ¶
func GetTable(name string) *VirtualTable
func New ¶
func New(args []string) (*VirtualTable, error)
func (*VirtualTable) Begin ¶
func (c *VirtualTable) Begin() error
func (*VirtualTable) BestIndex ¶
func (c *VirtualTable) BestIndex(input []IndexInput, order []OrderInput) (*IndexOutput, error)
func (*VirtualTable) Commit ¶
func (c *VirtualTable) Commit() error
func (*VirtualTable) Delete ¶
func (c *VirtualTable) Delete(key interface{}) error
func (*VirtualTable) Disconnect ¶
func (c *VirtualTable) Disconnect() error
func (*VirtualTable) Insert ¶
func (c *VirtualTable) Insert(values map[int]interface{}) (int64, error)
func (*VirtualTable) Open ¶
func (c *VirtualTable) Open() (*Cursor, error)
func (*VirtualTable) Rollback ¶
func (c *VirtualTable) Rollback() error
func (*VirtualTable) Update ¶
func (c *VirtualTable) Update(key interface{}, values map[int]interface{}) error
Click to show internal directories.
Click to hide internal directories.