pub enum IndexMethod {
BTree,
Hash,
Bitmap,
Hnsw,
}Expand description
Index type for USING clause
Variants§
BTree
B-tree index (default for INTEGER, FLOAT, TIMESTAMP) - good for range queries
Hash
Hash index (default for TEXT, JSON) - good for equality lookups
Bitmap
Bitmap index (default for BOOLEAN) - good for low-cardinality columns
Hnsw
HNSW index - approximate nearest neighbor search for vector columns
Trait Implementations§
Source§impl Clone for IndexMethod
impl Clone for IndexMethod
impl Copy for IndexMethod
Source§impl Debug for IndexMethod
impl Debug for IndexMethod
Source§impl Display for IndexMethod
impl Display for IndexMethod
impl Eq for IndexMethod
Source§impl PartialEq for IndexMethod
impl PartialEq for IndexMethod
impl StructuralPartialEq for IndexMethod
Auto Trait Implementations§
impl Forget for IndexMethod
impl Freeze for IndexMethod
impl RefUnwindSafe for IndexMethod
impl Send for IndexMethod
impl Sync for IndexMethod
impl Unpin for IndexMethod
impl UnsafeUnpin for IndexMethod
impl UnwindSafe for IndexMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more