pub enum IndexOrigin {
Created,
Unique,
PrimaryKey,
Module,
}Expand description
Where an index came from, which decides whether it can be dropped and how
it is named in sqlite_schema.
Variants§
Created
CREATE INDEX.
Unique
A UNIQUE constraint.
PrimaryKey
A PRIMARY KEY constraint on a rowid table.
Module
An index a module owns, named by CREATE INDEX ... USING <module>.
Not a b-tree, and the planner has to know that. Its rows live in a
virtual table, its root is that table’s own root, and none of the
b-tree paths apply to it - there is nothing to seek and nothing to
range-scan. What it can do is answer “the k nearest to this vector”,
which is a whole access path of its own.
Trait Implementations§
Source§impl Clone for IndexOrigin
impl Clone for IndexOrigin
impl Copy for IndexOrigin
Source§impl Debug for IndexOrigin
impl Debug for IndexOrigin
impl Eq for IndexOrigin
Source§impl PartialEq for IndexOrigin
impl PartialEq for IndexOrigin
impl StructuralPartialEq for IndexOrigin
Auto Trait Implementations§
impl Freeze for IndexOrigin
impl RefUnwindSafe for IndexOrigin
impl Send for IndexOrigin
impl Sync for IndexOrigin
impl Unpin for IndexOrigin
impl UnsafeUnpin for IndexOrigin
impl UnwindSafe for IndexOrigin
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