pub struct KineticaColumnProperties /* private fields */ Kinetica column properties
Implementations
pub fn primary_key(self) -> Self
Marks this column as a primary key
Marks this column with char(N) type: charN, for N of 1, 2, 4, 8, 16, 32, 64, 128 or 256. The server refuses another size when the type is created (“Unknown property: char3”).
Marks this column as a decimal (SQL NUMERIC(19,4), the server default)
pub fn decimal_with_precision(self, precision: u32, scale: u32) -> Self
Marks this column as a decimal with the given precision and scale, i.e. decimal(P,S)
Written with no space after the comma: the form (decimal\((\d+),(\d+)\)) from which precision and scale are read back out of a type’s properties.
pub fn text_search(self) -> Self
Enables full text search on this (string) column
Marks this (string) column as an unbounded array of item_type (e.g. “int”, “long”, “double”, “string”), i.e. array(item_type)
Marks this (string) column as an array of item_type holding at most len items, i.e. array(item_type, len); a len of -1 means unbounded
Marks this (bytes) column as a vector of dimensions floats, i.e. vector(dimensions)
pub fn soft_primary_key(self) -> Self
Marks this column as part of (or all of) the soft primary key
Compresses this column with the given codec and optional level, i.e. compress(codec); pass e.g. “snappy” or “zstd(7)“
pub fn init_with_now(self) -> Self
Replaces empty or invalid date/time/datetime/timestamp values with NOW() on insert
pub fn init_with_uuid(self) -> Self
Replaces empty or invalid UUID values with a random UUID on insert
pub fn update_with_now(self) -> Self
Sets this date/time/datetime/timestamp column to NOW() on any update
pub fn update_with_user(self) -> Self
Sets this charN or string column to the current user’s name on any update
pub fn default_value(self, expr: &str) -> Self
Sets a default value expression, i.e. default(expr); pass e.g. “0”, “‘pending’” or “NOW()“
pub fn default_sql(self, expr: &str) -> Self
Sets the SQL-syntax default expression shown in generated DDL, i.e. default_sql(expr)
The parenthesised form here follows default(expr). Use property if a server expects something else.
Trait Implementations
impl Clone for KineticaColumnProperties
fn clone(&self) -> KineticaColumnProperties
fn clone_from(&mut self, source: &Self)
source. Read more