using unified system
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
// This file is @generated by prost-build.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct CreateCustomExchangeRatesTableRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct CreateCustomExchangeRatesTableResponse {
|
||||
#[prost(int64, tag = "1")]
|
||||
@@ -163,6 +165,7 @@ pub struct AddTableColumnsRequest {
|
||||
/// Removals use stable column IDs rather than aliases. Generated companion
|
||||
/// columns must be removed together with their generating column. New columns
|
||||
/// follow the same contract as AddTableColumns.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct PutTableDefinitionRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
@@ -186,6 +189,7 @@ pub struct PutTableDefinitionRequest {
|
||||
#[prost(string, tag = "8")]
|
||||
pub new_table_name: ::prost::alloc::string::String,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct PutTableDefinitionResponse {
|
||||
#[prost(bool, tag = "1")]
|
||||
@@ -272,6 +276,7 @@ pub struct TableDefinitionResponse {
|
||||
pub sql: ::prost::alloc::string::String,
|
||||
}
|
||||
/// Describes the tree of all profiles and their tables.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct ProfileTreeResponse {
|
||||
/// All profiles in the system.
|
||||
@@ -286,6 +291,7 @@ pub struct ProfileTreeResponse {
|
||||
/// Nested message and enum types in `ProfileTreeResponse`.
|
||||
pub mod profile_tree_response {
|
||||
/// One link: the table it points at, and the column carrying it.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct Dependency {
|
||||
/// Table being referenced.
|
||||
@@ -298,6 +304,7 @@ pub mod profile_tree_response {
|
||||
pub column_name: ::prost::alloc::string::String,
|
||||
}
|
||||
/// Table entry in a profile.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Table {
|
||||
/// Internal ID from table_definitions.id (metadata record).
|
||||
@@ -329,6 +336,7 @@ pub mod profile_tree_response {
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
}
|
||||
/// Profile (schema) entry.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Profile {
|
||||
/// Name of the schema/profile (as stored in `schemas.name`).
|
||||
@@ -339,18 +347,21 @@ pub mod profile_tree_response {
|
||||
pub tables: ::prost::alloc::vec::Vec<Table>,
|
||||
}
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct GetTableCatalogRequest {
|
||||
/// Selected profile. Omit this field to request the global-only scope.
|
||||
#[prost(string, optional, tag = "1")]
|
||||
pub profile_name: ::core::option::Option<::prost::alloc::string::String>,
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct GetTableCatalogResponse {
|
||||
#[prost(message, repeated, tag = "1")]
|
||||
pub tables: ::prost::alloc::vec::Vec<profile_tree_response::Table>,
|
||||
}
|
||||
/// Request to fetch all tables, columns and scripts for a profile.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct GetProfileDetailsRequest {
|
||||
/// Profile (schema) name to fetch details for.
|
||||
@@ -358,6 +369,7 @@ pub struct GetProfileDetailsRequest {
|
||||
pub profile_name: ::prost::alloc::string::String,
|
||||
}
|
||||
/// Response with all tables, columns and scripts for a profile.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct GetProfileDetailsResponse {
|
||||
#[prost(string, tag = "1")]
|
||||
@@ -428,6 +440,7 @@ pub struct GetColumnAliasRenameHistoryResponse {
|
||||
pub entries: ::prost::alloc::vec::Vec<ColumnAliasRenameHistoryEntry>,
|
||||
}
|
||||
/// Describes a table with its columns and associated scripts.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct TableDetail {
|
||||
#[prost(string, tag = "1")]
|
||||
@@ -464,6 +477,7 @@ pub struct TableDetail {
|
||||
pub has_data: bool,
|
||||
}
|
||||
/// Server-owned behavior for one logical column returned in table details.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ColumnBehavior {
|
||||
/// True when the server created the column as a companion of another column.
|
||||
@@ -483,6 +497,7 @@ pub struct ColumnBehavior {
|
||||
pub column_id: i64,
|
||||
}
|
||||
/// A script that targets a specific column in a table.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct ScriptInfo {
|
||||
#[prost(int64, tag = "1")]
|
||||
@@ -535,6 +550,7 @@ pub struct SetColumnPresentationResponse {
|
||||
pub row_version: i64,
|
||||
}
|
||||
/// Request to delete one table definition entirely.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteTableRequest {
|
||||
/// Profile (schema) name owning the table (must exist).
|
||||
@@ -546,6 +562,7 @@ pub struct DeleteTableRequest {
|
||||
pub table_name: ::prost::alloc::string::String,
|
||||
}
|
||||
/// Response after table deletion.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct DeleteTableResponse {
|
||||
/// True if table and metadata were successfully deleted in one transaction.
|
||||
@@ -562,6 +579,7 @@ pub struct DeleteTableResponse {
|
||||
/// list covers types clients may NOT declare as well (see `declarable`), so that
|
||||
/// the same call also explains the types GetProfileDetails reports back for
|
||||
/// server-generated companion columns.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct ListColumnTypesResponse {
|
||||
/// Every column type, declarable or not, ordered by name.
|
||||
@@ -571,6 +589,7 @@ pub struct ListColumnTypesResponse {
|
||||
/// Nested message and enum types in `ListColumnTypesResponse`.
|
||||
pub mod list_column_types_response {
|
||||
/// One column type and everything a client needs to know to offer it.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct ColumnType {
|
||||
/// Logical column type (e.g. "money", "instant"). Passed to the server as
|
||||
@@ -630,6 +649,7 @@ pub mod list_column_types_response {
|
||||
/// Nested message and enum types in `ColumnType`.
|
||||
pub mod column_type {
|
||||
/// One column a compound type expands into.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct GeneratedColumn {
|
||||
/// Name the server gives the column. Fixed, and reserved: a table
|
||||
@@ -647,6 +667,7 @@ pub mod list_column_types_response {
|
||||
}
|
||||
}
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[repr(i32)]
|
||||
pub enum MoneyRounding {
|
||||
@@ -673,6 +694,7 @@ impl MoneyRounding {
|
||||
}
|
||||
}
|
||||
}
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[repr(i32)]
|
||||
pub enum BooleanLedgerOperator {
|
||||
@@ -703,6 +725,7 @@ impl BooleanLedgerOperator {
|
||||
}
|
||||
}
|
||||
/// How a column type is spelled in ColumnDefinition.field_type.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[repr(i32)]
|
||||
pub enum ColumnTypeSpelling {
|
||||
|
||||
Reference in New Issue
Block a user