pub struct IndexExecutor;Expand description
Unified executor for index operations (CREATE, DROP, and REINDEX INDEX)
This struct provides backward compatibility with the original API, delegating to specialized executors for each operation.
Implementations§
Source§impl IndexExecutor
impl IndexExecutor
Sourcepub fn execute(
stmt: &CreateIndexStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute( stmt: &CreateIndexStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute a CREATE INDEX statement (delegates to CreateIndexExecutor)
Sourcepub fn execute_drop(
stmt: &DropIndexStmt,
database: &mut Database,
) -> Result<String, ExecutorError>
pub fn execute_drop( stmt: &DropIndexStmt, database: &mut Database, ) -> Result<String, ExecutorError>
Execute a DROP INDEX statement (delegates to DropIndexExecutor)
Sourcepub fn execute_reindex(
stmt: &ReindexStmt,
database: &Database,
) -> Result<String, ExecutorError>
pub fn execute_reindex( stmt: &ReindexStmt, database: &Database, ) -> Result<String, ExecutorError>
Execute a REINDEX statement (delegates to ReindexExecutor)
Auto Trait Implementations§
impl Freeze for IndexExecutor
impl RefUnwindSafe for IndexExecutor
impl Send for IndexExecutor
impl Sync for IndexExecutor
impl Unpin for IndexExecutor
impl UnwindSafe for IndexExecutor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more