Source
pub async fn create_environment( &self, environment_name: String, ) -> Result<CreateEnvironmentResponse, KineticaError>
Create a UDF environment
Creates a new environment which can be used by user-defined functions (UDF).
environment_name- Name of the environment to be created.
Source
pub async fn create_environment_with_opts( &self, environment_name: String, options: CreateEnvironmentRequestOptions, ) -> Result<CreateEnvironmentResponse, KineticaError>
Create a UDF environment
Creates a new environment which can be used by user-defined functions (UDF).
environment_name- Name of the environment to be created.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_environment_raw( &self, request: &CreateEnvironmentRequest, ) -> Result<CreateEnvironmentResponse, KineticaError>
Sends a pre-built CreateEnvironmentRequest to the /create/environment endpoint.
Source
pub async fn create_environment_from_url( &self, url: &str, request: &CreateEnvironmentRequest, ) -> Result<CreateEnvironmentResponse, KineticaError>
Sends a pre-built CreateEnvironmentRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.