Expand description
Raw FFI bindings to the RayforceDB v2 core (librayforce).
Generated by bindgen from the core’s own headers: the public
rayforce.h, plus the private ones declaring the handful of internal
symbols the safe crate needs (INTERNAL_FNS in build.rs is the full
list). This crate is unsafe and 1:1 with the C ABI; use the safe
rayforce crate instead.
The header’s function-like macros (ray_type, ray_len, ray_data,
RAY_IS_ERR, RAY_IS_NULL, …) are not emitted by bindgen — the safe crate
reimplements them in Rust against the generated ray_t layout.
Structs§
- __
Bindgen Union Field - __
Incomplete Array Field - ray_
aof_ s - ray_
file_ map_ s - ray_
poll - ray_
progress_ t - ray_
runtime_ s - ray_
sym_ domain_ s - ray_t
- ray_
t__ bindgen_ ty_ 1 - ray_
t__ bindgen_ ty_ 2 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 2 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 3 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 4 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 5 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 1__ bindgen_ ty_ 6 - ray_
t__ bindgen_ ty_ 1__ bindgen_ ty_ 2__ bindgen_ ty_ 1
Constants§
- Q_
ERR_ HANDSHAKE - Q_
ERR_ SOCKET q_connectfailure codes (mirrorsq.h).- Q_
ERR_ TIMEOUT - RAY_
ATTR_ SLICE - RAY_
BINARY - RAY_
BOOL - RAY_
DATE - RAY_
DICT - RAY_
ERROR - RAY_F32
- RAY_F64
- RAY_
GUID - RAY_I16
- RAY_I32
- RAY_I64
- RAY_
INDEX - RAY_
IPC_ ERR_ AUTH_ FAILED - The server rejected the credentials.
- RAY_
IPC_ ERR_ AUTH_ REQUIRED - The server demands credentials and the caller supplied no password.
- RAY_
IPC_ ERR_ OS - Some other OS error; the core leaves
errnoholding it. - RAY_
IPC_ ERR_ REFUSED ray_ipc_connectfailure codes.- RAY_
IPC_ ERR_ TIMEOUT - No answer within the connect/handshake budget. The core folds
EAGAINandEWOULDBLOCKin here too, so this also covers a live server that is busy inside a long evaluation. - RAY_
IPC_ ERR_ WIRE_ VERSION - The peer speaks a different serialization wire version.
- RAY_
LAMBDA - RAY_
LIST - RAY_
NULL - RAY_STR
- RAY_SYM
- RAY_
SYM_ W8 - RAY_
SYM_ W16 - RAY_
SYM_ W32 - RAY_
SYM_ W64 - RAY_
TABLE - RAY_
TIME - RAY_
TIMESTAMP - RAY_U8
- RAY_
UNARY - RAY_
VARY - RAY_
VERSION_ MAJOR - RAY_
VERSION_ MINOR - RAY_
VERSION_ NUMBER - RAY_
VERSION_ PATCH - ray_
err_ t_ RAY_ ERR_ CANCEL - ray_
err_ t_ RAY_ ERR_ CORRUPT - ray_
err_ t_ RAY_ ERR_ DOMAIN - ray_
err_ t_ RAY_ ERR_ IO - ray_
err_ t_ RAY_ ERR_ LENGTH - ray_
err_ t_ RAY_ ERR_ LIMIT - ray_
err_ t_ RAY_ ERR_ NAME - ray_
err_ t_ RAY_ ERR_ NYI - ray_
err_ t_ RAY_ ERR_ OOM - ray_
err_ t_ RAY_ ERR_ PARSE - ray_
err_ t_ RAY_ ERR_ RANGE - ray_
err_ t_ RAY_ ERR_ RANK - ray_
err_ t_ RAY_ ERR_ RESERVED - ray_
err_ t_ RAY_ ERR_ SCHEMA - ray_
err_ t_ RAY_ ERR_ TYPE - ray_
err_ t_ RAY_ ERR_ VERSION - ray_
err_ t_ RAY_ OK
Statics§
Functions§
- q_close⚠
- Close a connection fd. Returns 0 on success, -1 on an invalid fd.
- q_
connect ⚠ - Open a TCP connection to a Q server and perform the login handshake.
Returns a connection fd (>= 0), or a negative
Q_ERR_*code. - q_
decode ⚠ - Decompress (if needed) and deserialize a response body (wire header
already stripped) into a freshly-owned object — possibly a
RAY_ERRORcarrying a Q server-side error. Touches the symbol table: engine thread only. Returns null on a decode failure with a short reason inerr. - q_send⚠
- Encode + exchange + decode: send
msgand return the decoded response (possibly aRAY_ERROR), or null on a transport/serialization failure with a short reason written toerr. - ray_
alloc ⚠ - ray_
alloc_ ⚠raw - ray_
aof_ ⚠append - ray_
aof_ ⚠close - ray_
aof_ ⚠commit - ray_
aof_ ⚠next_ lsn - ray_
aof_ ⚠open - ray_
aof_ ⚠scan - ray_
bool ⚠ - ray_
calloc_ ⚠raw - ray_
clear_ ⚠interrupt - ray_
data_ ⚠slice_ path - ray_
date ⚠ - ray_de⚠
- ray_
delete ⚠ - ray_
dict_ ⚠get - ray_
dict_ ⚠keys - ray_
dict_ ⚠len - ray_
dict_ ⚠new - ray_
dict_ ⚠remove - ray_
dict_ ⚠upsert - ray_
dict_ ⚠vals - ray_
env_ ⚠get - ray_
env_ ⚠set - ray_
err_ ⚠code - ray_
err_ ⚠code_ str - ray_
err_ ⚠from_ obj - ray_
error ⚠ - ray_
error_ ⚠free - ray_
error_ ⚠msg - ray_
eval ⚠ - ray_
eval_ ⚠str - ray_f32⚠
- ray_f64⚠
- ray_fmt⚠
- ray_
free ⚠ - ray_
free_ ⚠raw - ray_
get_ ⚠parted_ fn - ray_
get_ ⚠splayed_ fn - ray_
guid ⚠ - ray_i16⚠
- ray_i32⚠
- ray_i64⚠
- ray_
insert ⚠ - ray_
insert_ ⚠fn - ray_
interrupted ⚠ - ray_
ipc_ ⚠close - ray_
ipc_ ⚠connect - ray_
ipc_ ⚠send - ray_
ipc_ ⚠send_ async - ray_
ipc_ ⚠send_ verbose - ray_
lazy_ ⚠materialize - ray_
list_ ⚠append - ray_
list_ ⚠get - ray_
list_ ⚠insert_ at - ray_
list_ ⚠insert_ many - ray_
list_ ⚠new - ray_
list_ ⚠set - ray_
obj_ ⚠attrs - ray_
obj_ ⚠type - ray_
poll_ ⚠create - ray_
poll_ ⚠destroy - ray_
poll_ ⚠exit - ray_
poll_ ⚠run - ray_
poll_ ⚠run_ for - ray_
poll_ ⚠set_ restricted - ray_
progress_ ⚠active - ray_
progress_ ⚠dispatch_ begin - ray_
progress_ ⚠end - ray_
progress_ ⚠label - ray_
progress_ ⚠pump - ray_
progress_ ⚠set_ callback - ray_
progress_ ⚠span_ begin - ray_
progress_ ⚠span_ end - ray_
progress_ ⚠span_ phase - ray_
progress_ ⚠span_ set - ray_
progress_ ⚠update - ray_
read_ ⚠csv_ fn - ray_
realloc_ ⚠raw - ray_
release ⚠ - ray_
request_ ⚠interrupt - ray_
retain ⚠ - ray_
retained_ ⚠bytes - ray_
runtime_ ⚠create - ray_
runtime_ ⚠create_ with_ sym - ray_
runtime_ ⚠create_ with_ sym_ err - ray_
runtime_ ⚠destroy - ray_
runtime_ ⚠get_ poll - ray_
runtime_ ⚠set_ poll - ray_
select ⚠ - ray_ser⚠
- ray_
set_ ⚠splayed_ fn - ray_
shallow_ ⚠bytes - ray_str⚠
- ray_
str_ ⚠cmp - ray_
str_ ⚠len - ray_
str_ ⚠ptr - ray_
str_ ⚠vec_ append - ray_
str_ ⚠vec_ compact - ray_
str_ ⚠vec_ from_ parts - ray_
str_ ⚠vec_ get - ray_
str_ ⚠vec_ insert_ at - ray_
str_ ⚠vec_ set - ray_sym⚠
- ray_
sym_ ⚠count - ray_
sym_ ⚠destroy - ray_
sym_ ⚠domain_ count - ray_
sym_ ⚠domain_ find - ray_
sym_ ⚠domain_ runtime_ lut - ray_
sym_ ⚠domain_ str - ray_
sym_ ⚠ensure_ cap - ray_
sym_ ⚠find - ray_
sym_ ⚠init - ray_
sym_ ⚠intern - ray_
sym_ ⚠intern_ runtime - ray_
sym_ ⚠load - ray_
sym_ ⚠runtime_ domain - ray_
sym_ ⚠save - ray_
sym_ ⚠str - ray_
sym_ ⚠strings_ borrow - ray_
sym_ ⚠vec_ adopt_ domain - ray_
sym_ ⚠vec_ new - ray_
sys_ ⚠total_ ram - ray_
table_ ⚠add_ col - ray_
table_ ⚠col_ name - ray_
table_ ⚠get_ col - ray_
table_ ⚠get_ col_ idx - ray_
table_ ⚠ncols - ray_
table_ ⚠new - ray_
table_ ⚠nrows - ray_
table_ ⚠schema - ray_
table_ ⚠set_ col_ idx - ray_
table_ ⚠set_ col_ name - ray_
table_ ⚠validate_ rectangular - ray_
time ⚠ - ray_
timestamp ⚠ - ray_
timestamp_ ⚠now_ ns - ray_
typed_ ⚠null - ray_u8⚠
- ray_
update ⚠ - ray_
update_ ⚠fn - ray_
upsert ⚠ - ray_
upsert_ ⚠fn - ray_
vec_ ⚠append - ray_
vec_ ⚠append_ raw - ray_
vec_ ⚠concat - ray_
vec_ ⚠from_ raw - ray_
vec_ ⚠get - ray_
vec_ ⚠get_ f64 - ray_
vec_ ⚠get_ i64 - ray_
vec_ ⚠get_ sym_ id - ray_
vec_ ⚠insert_ at - ray_
vec_ ⚠insert_ many - ray_
vec_ ⚠insert_ vec_ at - ray_
vec_ ⚠is_ null - ray_
vec_ ⚠new - ray_
vec_ ⚠set - ray_
vec_ ⚠set_ null - ray_
vec_ ⚠set_ null_ checked - ray_
vec_ ⚠slice - ray_
version_ ⚠major - ray_
version_ ⚠minor - ray_
version_ ⚠patch - ray_
version_ ⚠string - ray_
write_ ⚠csv_ fn