Skip to main content
Source

pub async fn alter_schema( &self, schema_name: String, action: String, value: String, ) -> Result<AlterSchemaResponse, KineticaError>

Alter a SQL-style schema.

Used to change the name of a SQL-style schema, specified in schema_name.

  • schema_name - Name of the schema to be altered.
  • action - Modification operation to be applied.
  • value - The value of the modification, depending on action. For now the only value of action is rename_schema. In this case the value is the new name of the schema.
Source

pub async fn alter_schema_with_opts( &self, schema_name: String, action: String, value: String, options: AlterSchemaRequestOptions, ) -> Result<AlterSchemaResponse, KineticaError>

Alter a SQL-style schema.

Used to change the name of a SQL-style schema, specified in schema_name.

  • schema_name - Name of the schema to be altered.
  • action - Modification operation to be applied.
  • value - The value of the modification, depending on action. For now the only value of action is rename_schema. In this case the value is the new name of the schema.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built AlterSchemaRequest to the /alter/schema endpoint.

Sends a pre-built AlterSchemaRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.