pub struct TableResult { /* private fields */ }
Expand description
Struct representing the result of a TableRequest
or a GetTableRequest
.
Implementations§
Source§impl TableResult
impl TableResult
Sourcepub async fn wait_for_completion(
&mut self,
h: &Handle,
wait: Duration,
delay: Duration,
) -> Result<(), NoSQLError>
pub async fn wait_for_completion( &mut self, h: &Handle, wait: Duration, delay: Duration, ) -> Result<(), NoSQLError>
Wait for a TableRequest to complete.
This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.
Sourcepub async fn wait_for_completion_ms(
&mut self,
h: &Handle,
wait_ms: u64,
delay_ms: u64,
) -> Result<(), NoSQLError>
pub async fn wait_for_completion_ms( &mut self, h: &Handle, wait_ms: u64, delay_ms: u64, ) -> Result<(), NoSQLError>
Wait for a TableRequest to complete.
This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.
This is a convenience method to allow direct millisecond values instead of creating
Duration
structs.
Sourcepub fn table_name(&self) -> String
pub fn table_name(&self) -> String
Get the table name.
This is only valid for GetTableRequest
.
Sourcepub fn compartment_id(&self) -> String
pub fn compartment_id(&self) -> String
Cloud only: get the compartment id of the table.
This is only valid for GetTableRequest
.
Sourcepub fn namespace(&self) -> String
pub fn namespace(&self) -> String
On-premises only: get the namespace of the table.
This is only valid for GetTableRequest
.
Sourcepub fn table_ocid(&self) -> String
pub fn table_ocid(&self) -> String
Cloud only: get the OCID of the table.
This is only valid for GetTableRequest
.
Sourcepub fn ddl(&self) -> String
pub fn ddl(&self) -> String
Get the DDL statement that was used to create the table.
Note this will reflect any ALTER TABLE
operations as well.
Sourcepub fn operation_id(&self) -> String
pub fn operation_id(&self) -> String
Get the internal operation ID for an in-progress table request.
This is typically not needed by applications; it is available for testing purposes only.
Internally, TableResult::wait_for_completion()
uses this value when polling the system.
Sourcepub fn schema(&self) -> String
pub fn schema(&self) -> String
Get the schema of the table.
Note this will reflect any ALTER TABLE
operations as well.
Sourcepub fn state(&self) -> TableState
pub fn state(&self) -> TableState
Get the current state of the table.
Sourcepub fn limits(&self) -> Option<TableLimits>
pub fn limits(&self) -> Option<TableLimits>
Cloud only: get the table limits.
Sourcepub fn match_etag(&self) -> Option<String>
pub fn match_etag(&self) -> Option<String>
Cloud only: get the match ETag for the table.
see TableRequest::match_etag()
for more details.