pub struct UpdateTableRequest {
pub identity: Option<Box<Identity>>,
pub context: Option<HashMap<String, String>>,
pub id: Option<Vec<String>>,
pub branch: Option<String>,
pub predicate: Option<String>,
pub updates: Vec<Vec<String>>,
pub properties: Option<HashMap<String, String>>,
}Expand description
UpdateTableRequest : Each update consists of a field path and an SQL expression that will be evaluated against the current row’s value. Optionally, a predicate can be provided to filter which rows to update.
Fields§
§identity: Option<Box<Identity>>§context: Option<HashMap<String, String>>Arbitrary context for a request as key-value pairs. How to use the context is custom to the specific implementation. REST NAMESPACE ONLY Context entries are passed via HTTP headers using the naming convention x-lance-ctx-<key>: <value>. For example, a context entry {\"trace_id\": \"abc123\"} would be sent as the header x-lance-ctx-trace_id: abc123.
id: Option<Vec<String>>§branch: Option<String>Branch to target. When not specified, the main branch is used.
predicate: Option<String>Optional SQL predicate to filter rows for update. Field references must use Lance field path syntax: nested fields use dot-separated segments, literal dots require backtick-quoted segments, and backticks inside quoted segments are doubled.
updates: Vec<Vec<String>>List of field updates as [field_path, expression] pairs. Field paths and expression references must use Lance field path syntax: nested fields use dot-separated segments, literal dots require backtick-quoted segments, and backticks inside quoted segments are doubled.
properties: Option<HashMap<String, String>>Properties stored on the table, if supported by the implementation.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateTableRequest
impl Clone for UpdateTableRequest
Source§fn clone(&self) -> UpdateTableRequest
fn clone(&self) -> UpdateTableRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateTableRequest
impl Debug for UpdateTableRequest
Source§impl Default for UpdateTableRequest
impl Default for UpdateTableRequest
Source§fn default() -> UpdateTableRequest
fn default() -> UpdateTableRequest
Source§impl<'de> Deserialize<'de> for UpdateTableRequest
impl<'de> Deserialize<'de> for UpdateTableRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateTableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateTableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for UpdateTableRequest
impl PartialEq for UpdateTableRequest
Source§fn eq(&self, other: &UpdateTableRequest) -> bool
fn eq(&self, other: &UpdateTableRequest) -> bool
self and other values to be equal, and is used by ==.