pub enum Stmt {
Show 20 variants
Query(Box<QueryStmt>),
Scroll(Box<ScrollStmt>),
Upsert(Box<UpsertStmt>),
CreateCollection(Box<CreateCollectionStmt>),
CreateIndex(Box<CreateIndexStmt>),
DropIndex(Box<DropIndexStmt>),
CreateShardKey(Box<CreateShardKeyStmt>),
DropShardKey(Box<DropShardKeyStmt>),
AlterCollection(Box<AlterCollectionStmt>),
DropCollection(Box<DropCollectionStmt>),
ShowCollections,
ShowCollection(String),
ShowShardKeys(String),
Delete(Box<DeleteStmt>),
ClearPayload(Box<ClearPayloadStmt>),
DeletePayload(Box<DeletePayloadStmt>),
DeleteVector(Box<DeleteVectorStmt>),
UpdateVector(Box<UpdateVectorStmt>),
UpdatePayload(Box<UpdatePayloadStmt>),
Count(Box<CountStmt>),
}Variants§
Query(Box<QueryStmt>)
Scroll(Box<ScrollStmt>)
Upsert(Box<UpsertStmt>)
CreateCollection(Box<CreateCollectionStmt>)
CreateIndex(Box<CreateIndexStmt>)
DropIndex(Box<DropIndexStmt>)
CreateShardKey(Box<CreateShardKeyStmt>)
DropShardKey(Box<DropShardKeyStmt>)
AlterCollection(Box<AlterCollectionStmt>)
DropCollection(Box<DropCollectionStmt>)
ShowCollections
ShowCollection(String)
ShowShardKeys(String)
Delete(Box<DeleteStmt>)
ClearPayload(Box<ClearPayloadStmt>)
DeletePayload(Box<DeletePayloadStmt>)
DeleteVector(Box<DeleteVectorStmt>)
UpdateVector(Box<UpdateVectorStmt>)
UpdatePayload(Box<UpdatePayloadStmt>)
Count(Box<CountStmt>)
Implementations§
Source§impl Stmt
impl Stmt
Sourcepub fn shard_key(&self) -> Option<&str>
pub fn shard_key(&self) -> Option<&str>
Custom shard routing key for this statement, if any.
Corresponds to QQL SHARD '…' on DML, lowered to request-level
shard_key (REST) / ShardKeySelector (gRPC) — never inside Filter.
Sourcepub fn set_shard_key(&mut self, shard_key: Option<String>) -> bool
pub fn set_shard_key(&mut self, shard_key: Option<String>) -> bool
Set custom shard routing (same field as QQL SHARD '…').
Prefer writing SHARD 'tenant' in the query when the tenant is known at
authoring time. Use this setter only when the host resolves the key after
parse (e.g. from auth context) without re-stringifying QQL.
On QUERY, recurses into CTEs and nested prefetch queries so routing
matches a top-level SHARD clause. Empty / None clears the key.
Returns false for statement types that cannot carry routing (DDL, SHOW).
Trait Implementations§
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnsafeUnpin for Stmt
impl UnwindSafe for Stmt
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