pub struct ShowTableResponse
pub table_name: String,
pub table_names: Vec<String>,
pub table_descriptions: Vec<Vec<String>>,
pub type_ids: Vec<String>,
pub type_schemas: Vec<String>,
pub type_labels: Vec<String>,
pub properties: Vec<HashMap<String, Vec<String>>>,
pub additional_info: Vec<HashMap<String, String>>,
pub sizes: Vec<i64>,
pub full_sizes: Vec<i64>,
pub join_sizes: Vec<f64>,
pub total_size: i64,
pub total_full_size: i64,
pub info: HashMap<String, String>,
The response from the /show/table endpoint.
Fields
table_name: StringValue of table_name.
table_names: Vec<String>If table_name is a table or view, then the single element of the array is table_name. If table_name is a schema and show_children is set to true, then this array is populated with the names of all tables and views in the given schema; if show_children is false, then this array will only include the schema name itself. If table_name is an empty string, then the array contains the names of all tables in the user’s default schema.
table_descriptions: Vec<Vec<String>>List of descriptions for the respective tables in table_names.
type_ids: Vec<String>Type IDs of the respective tables in table_names.
type_schemas: Vec<String>Type schemas of the respective tables in table_names.
type_labels: Vec<String>Type labels of the respective tables in table_names.
properties: Vec<HashMap<String, Vec<String>>>Property maps of the respective tables in table_names.
additional_info: Vec<HashMap<String, String>>Additional information about the respective tables in table_names.
sizes: Vec<i64>If get_sizes is true, an array containing the number of records of each corresponding table in table_names. Otherwise, an empty array.
full_sizes: Vec<i64>If get_sizes is true, an array containing the number of records of each corresponding table in table_names (same values as sizes). Otherwise, an empty array.
join_sizes: Vec<f64>If get_sizes is true, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table in table_names. For simple tables, this number will be the same as sizes. For join-tables, this value gives the number of joined-table rows that must be processed by any aggregate functions operating on the table. Otherwise, (if get_sizes is false), an empty array.
total_size: i64If get_sizes is true, the sum of the elements of sizes. Otherwise, -1.
total_full_size: i64If get_sizes is true, the sum of the elements of full_sizes (same value as total_size). Otherwise, -1.
info: HashMap<String, String>Additional information.
Trait Implementations
impl Clone for ShowTableResponse
fn clone(&self) -> ShowTableResponse
fn clone_from(&mut self, source: &Self)
source. Read more