Skip to main content
pub trait KineticaArrayElement: Sized 
    const ELEMENT_OIDS: &‘static [u32];

    // Required methods
    fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>;
fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>;
fn write_json(&self, out: &mut 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. An element of a Kinetica array: see KineticaArray.

Required Associated Constants

Source

const ELEMENT_OIDS: &‘static [u32]

The OIDs of the PostgreSQL element types Kinetica sends this as.

Required Methods

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

An element from its binary form, None for a null.

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

An element from its text form, None for a null.

Source

fn write_json(&self, out: &mut String)

Appends the element as JSON.

Dyn Compatibility

This trait is not dyn compatible.

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

Implementations on Foreign Types

Source

const ELEMENT_OIDS: &‘static [u32] = TEXT_OIDS

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32]

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32]

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32]

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32]

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32]

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

impl KineticaArrayElement for u64

Kinetica sends UNSIGNED BIGINT[] as text elements.

Source

const ELEMENT_OIDS: &‘static [u32] = TEXT_OIDS

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Source

const ELEMENT_OIDS: &‘static [u32] = T::ELEMENT_OIDS

Source

fn from_binary(bytes: Option<&[u8]>) -> Result<Self, BoxDynError>

Source

fn from_text(text: Option<&str>) -> Result<Self, BoxDynError>

Source

fn write_json(&self, out: &mut String)

Implementors