Skip to main content
pub trait ToKineticaText 
    // Required method
    fn to_kinetica_text(&self) -> String;

Values for the Kinetica types SQLx’s own PostgreSQL types cannot read or write over Kinetica’s protocol, or cannot reliably: see their module. A value Kinetica takes as text: see KineticaText.

Required Methods

The text Kinetica converts to the value.

Dyn Compatibility

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called “object safety”.

Implementations on Foreign Types

Source

impl ToKineticaText for [f32]

A vector as Kinetica’s text for one, [1,2.5,3]. This is what an UPDATE … SET of a VECTOR column, VECTOR(n,dims)</code>inan<code>INSERT</code>,andthevectorfunctions(<code>L2_DISTANCE</code>,<code>COSINE_DISTANCE</code>,<code>DOT_PRODUCT</code>,…)takeforaparameter;aplain<code>INSERT...VALUES(n, dims)</code> in an <code>INSERT</code>, and the vector functions (<code>L2\_DISTANCE</code>, <code>COSINE\_DISTANCE</code>, <code>DOT\_PRODUCT</code>, …) take for a parameter; a plain <code>INSERT ... VALUES (n) takes KineticaVector.

Source

impl ToKineticaText for bool

Kinetica’s boolean columns are integers: 1 and 0.

Implementors