pub struct KineticaArray<T>(pub Vec<T>);Values for the Kinetica types SQLx’s own PostgreSQL types cannot read or write over Kinetica’s protocol, or cannot reliably: see their module. An array column’s value. Kinetica sends arrays numbered from 0, which SQLx’s own Vec<T> refuses; this reads them, in the binary form a query’s results come in and in the text form sqlx::raw_sql gives, and writes them as the JSON text Kinetica takes. It also reads the JSON text Kinetica sends for an array a function computes, such as ARRAY_APPEND(col, 4).
Use KineticaArray<Option<T>> for an array that may hold nulls. The element types are those of Kinetica’s arrays: i32 (INTEGER[]), i64 (BIGINT[]), u64 (UNSIGNED BIGINT[]), f32 (REAL[]), f64 (DOUBLE[]), bool (BOOLEAN[]) and String (VARCHAR[]).
Tuple Fields
0: Vec<T>Trait Implementations
impl<T: Clone> Clone for KineticaArray<T>
fn clone(&self) -> KineticaArray<T>
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<T: Debug> Debug for KineticaArray<T>
impl<‘r, T: KineticaArrayElement> Decode<‘r, Postgres> for KineticaArray<T>
impl<T: Default> Default for KineticaArray<T>
fn default() -> KineticaArray<T>
impl<T: KineticaArrayElement> Encode<’_, Postgres> for KineticaArray<T>
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
self into buf in the expected format for the database.impl<T: PartialEq> PartialEq for KineticaArray<T>
fn eq(&self, other: &KineticaArray<T>) -> bool
self and other values to be equal, and is used by ==.