Struct ydb_unofficial::generated::ydb::table::AlterTableRequest
source · pub struct AlterTableRequest {Show 20 fields
pub session_id: String,
pub path: String,
pub add_columns: Vec<ColumnMeta, Global>,
pub drop_columns: Vec<String, Global>,
pub operation_params: Option<OperationParams>,
pub alter_columns: Vec<ColumnMeta, Global>,
pub add_indexes: Vec<TableIndex, Global>,
pub drop_indexes: Vec<String, Global>,
pub alter_storage_settings: Option<StorageSettings>,
pub add_column_families: Vec<ColumnFamily, Global>,
pub alter_column_families: Vec<ColumnFamily, Global>,
pub alter_attributes: HashMap<String, String, RandomState>,
pub set_compaction_policy: String,
pub alter_partitioning_settings: Option<PartitioningSettings>,
pub set_key_bloom_filter: i32,
pub set_read_replicas_settings: Option<ReadReplicasSettings>,
pub add_changefeeds: Vec<Changefeed, Global>,
pub drop_changefeeds: Vec<String, Global>,
pub rename_indexes: Vec<RenameIndexItem, Global>,
pub ttl_action: Option<TtlAction>,
}Expand description
Alter table with given path
Fields§
§session_id: StringSession identifier
path: StringFull path
add_columns: Vec<ColumnMeta, Global>Columns (name, type) to add
drop_columns: Vec<String, Global>Columns to remove
operation_params: Option<OperationParams>§alter_columns: Vec<ColumnMeta, Global>Columns to alter
add_indexes: Vec<TableIndex, Global>Add secondary indexes
drop_indexes: Vec<String, Global>Remove secondary indexes
alter_storage_settings: Option<StorageSettings>Change table storage settings
add_column_families: Vec<ColumnFamily, Global>Add/alter column families
alter_column_families: Vec<ColumnFamily, Global>§alter_attributes: HashMap<String, String, RandomState>Alter attributes. Leave the value blank to drop an attribute. Cannot be used in combination with other fields (except session_id and path) at the moment.
set_compaction_policy: StringSet predefined named set of settings for table compaction [“default”, “small_table”, “log_table”]. Set “default” to use default preset.
alter_partitioning_settings: Option<PartitioningSettings>Change table partitioning settings
set_key_bloom_filter: i32Enable/disable bloom filter by key
set_read_replicas_settings: Option<ReadReplicasSettings>Set read replicas settings for table
add_changefeeds: Vec<Changefeed, Global>Add change feeds
drop_changefeeds: Vec<String, Global>Remove change feeds (by its names)
rename_indexes: Vec<RenameIndexItem, Global>Rename existed index
ttl_action: Option<TtlAction>Setup or remove time to live settings
Implementations§
source§impl AlterTableRequest
impl AlterTableRequest
sourcepub fn set_key_bloom_filter(&self) -> Status
pub fn set_key_bloom_filter(&self) -> Status
Returns the enum value of set_key_bloom_filter, or the default if the field is set to an invalid enum value.
sourcepub fn set_set_key_bloom_filter(&mut self, value: Status)
pub fn set_set_key_bloom_filter(&mut self, value: Status)
Sets set_key_bloom_filter to the provided enum value.
Trait Implementations§
source§impl Clone for AlterTableRequest
impl Clone for AlterTableRequest
source§fn clone(&self) -> AlterTableRequest
fn clone(&self) -> AlterTableRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AlterTableRequest
impl Debug for AlterTableRequest
source§impl Default for AlterTableRequest
impl Default for AlterTableRequest
source§fn default() -> AlterTableRequest
fn default() -> AlterTableRequest
source§impl Message for AlterTableRequest
impl Message for AlterTableRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self.source§impl PartialEq<AlterTableRequest> for AlterTableRequest
impl PartialEq<AlterTableRequest> for AlterTableRequest
source§fn eq(&self, other: &AlterTableRequest) -> bool
fn eq(&self, other: &AlterTableRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AlterTableRequest
Auto Trait Implementations§
impl RefUnwindSafe for AlterTableRequest
impl Send for AlterTableRequest
impl Sync for AlterTableRequest
impl Unpin for AlterTableRequest
impl UnwindSafe for AlterTableRequest
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request