Documentation ¶
Index ¶
- func NewBTreeIndex(name, tableName string, unique bool, ...) impls.Index[BtreeIndexScanOptions]
- func NewHashIndex(name, tableName string, expression impls.Expression) impls.Index[HashIndexScanOptions]
- func NewPartialIndex[O impls.ScanOptions](index impls.Index[O], condition impls.Expression) *partialIndex[O]
- type BtreeIndexScanOptions
- type HashIndexScanOptions
- type ScanDirection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBTreeIndex ¶
func NewBTreeIndex(name, tableName string, unique bool, expressions []impls.ExpressionWithDirection) impls.Index[BtreeIndexScanOptions]
func NewHashIndex ¶
func NewHashIndex(name, tableName string, expression impls.Expression) impls.Index[HashIndexScanOptions]
func NewPartialIndex ¶
func NewPartialIndex[O impls.ScanOptions](index impls.Index[O], condition impls.Expression) *partialIndex[O]
Types ¶
type BtreeIndexScanOptions ¶
type BtreeIndexScanOptions struct {
// contains filtered or unexported fields
}
func CanSelectBtreeIndex ¶
func CanSelectBtreeIndex( index impls.BaseIndex, filterExpression impls.Expression, order impls.OrderExpression, ) (_ impls.Index[BtreeIndexScanOptions], opts BtreeIndexScanOptions, _ bool)
func NewBtreeSearchOptions ¶
func NewBtreeSearchOptions(values []any) BtreeIndexScanOptions
type HashIndexScanOptions ¶
type HashIndexScanOptions struct {
// contains filtered or unexported fields
}
func CanSelectHashIndex ¶
func CanSelectHashIndex( index impls.BaseIndex, filterExpression impls.Expression, ) (_ impls.Index[HashIndexScanOptions], opts HashIndexScanOptions, _ bool)
type ScanDirection ¶
type ScanDirection int
const ( ScanDirectionUnknown ScanDirection = iota ScanDirectionForward ScanDirectionBackward )
Click to show internal directories.
Click to hide internal directories.