#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(dead_code)]
use std::os::raw::{c_char, c_int};
#[cfg(feature = "arrow-ipc")]
use arrow2::ffi::{ArrowArray, ArrowSchema};
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum velr_cell_type {
VELR_NULL = 0,
VELR_BOOL = 1,
VELR_INT64 = 2,
VELR_DOUBLE = 3,
VELR_TEXT = 4,
VELR_JSON = 5,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_cell {
pub ty: velr_cell_type,
pub i64_: i64,
pub f64_: f64,
pub ptr: *const u8,
pub len: usize,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone, Debug)]
pub struct velr_query_options {
pub has_max_result_rows: c_int,
pub max_result_rows: usize,
pub reserved0: u64,
pub reserved1: u64,
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_strview {
pub ptr: *const u8,
pub len: usize,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum velr_migration_status {
VELR_MIGRATION_ALREADY_CURRENT = 0,
VELR_MIGRATION_MIGRATED = 1,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_migration_report {
pub from_version: i32,
pub to_version: i32,
pub status: velr_migration_status,
pub step_count: usize,
pub steps: *mut c_char,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum velr_code {
VELR_OK = 0,
VELR_EARG = -1,
VELR_EUTF = -2,
VELR_ESTATE = -3,
VELR_EERR = -4,
}
#[allow(non_camel_case_types)]
#[repr(C)]
pub struct velr_explain_trace;
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_explain_plan_meta {
pub plan_id: velr_strview,
pub cypher: velr_strview,
pub step_count: usize,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_explain_step_meta {
pub step_no: usize,
pub group_id: velr_strview,
pub op_index: velr_strview,
pub phase: velr_strview,
pub title: velr_strview,
pub source: velr_strview,
pub note: velr_strview,
pub statement_count: usize,
}
#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct velr_explain_stmt_meta {
pub stmt_id: velr_strview,
pub kind: velr_strview,
pub sql: velr_strview,
pub note: velr_strview,
pub sqlite_plan_count: usize,
}
#[cfg(feature = "arrow-ipc")]
#[repr(C)]
pub struct velr_arrow_chunks {
pub schemas: *const *const ArrowSchema,
pub arrays: *const *const ArrowArray,
pub chunk_count: usize,
}
#[repr(C)]
pub struct velr_db {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_stream {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_table {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_rows {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_tx {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_sp {
_private: [u8; 0],
}
#[repr(C)]
pub struct velr_stream_tx {
_private: [u8; 0],
}