Source
pub async fn create_schema( &self, schema_name: String, ) -> Result<CreateSchemaResponse, KineticaError>
Create a SQL-style schema.
Creates a SQL-style schema. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.
schema_name- Name of the schema to be created. Has the same naming restrictions as tables.
Source
pub async fn create_schema_with_opts( &self, schema_name: String, options: CreateSchemaRequestOptions, ) -> Result<CreateSchemaResponse, KineticaError>
Create a SQL-style schema.
Creates a SQL-style schema. Schemas are containers for tables and views. Multiple tables and views can be defined with the same name in different schemas.
schema_name- Name of the schema to be created. Has the same naming restrictions as tables.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_schema_raw( &self, request: &CreateSchemaRequest, ) -> Result<CreateSchemaResponse, KineticaError>
Sends a pre-built CreateSchemaRequest to the /create/schema endpoint.
Source
pub async fn create_schema_from_url( &self, url: &str, request: &CreateSchemaRequest, ) -> Result<CreateSchemaResponse, KineticaError>
Sends a pre-built CreateSchemaRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.