cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_orm_value Struct Reference

One cell of a column-typed result set. More...

#include <orm.h>

Public Attributes

cwist_orm_value_type_t type
 
int64_t i64
 
double real
 
char * text
 
unsigned char * blob
 
size_t blob_len
 

Detailed Description

One cell of a column-typed result set.

Exactly one payload field is meaningful per cwist_orm_value_type_t: i64 for CWIST_ORM_TYPE_INTEGER (exact above 2^53), real for CWIST_ORM_TYPE_REAL, text for CWIST_ORM_TYPE_TEXT (never NULL), and (blob, blob_len) for CWIST_ORM_TYPE_BLOB (blob is NULL when the BLOB is empty). Owned by the result set; released by cwist_orm_result_free().

Definition at line 297 of file orm.h.

Member Data Documentation

◆ blob

unsigned char* cwist_orm_value::blob

CWIST_ORM_TYPE_BLOB (NULL when empty)

Definition at line 302 of file orm.h.

Referenced by cwist_orm_result_free().

◆ blob_len

size_t cwist_orm_value::blob_len

CWIST_ORM_TYPE_BLOB

Definition at line 303 of file orm.h.

◆ i64

int64_t cwist_orm_value::i64

CWIST_ORM_TYPE_INTEGER

Definition at line 299 of file orm.h.

◆ real

double cwist_orm_value::real

CWIST_ORM_TYPE_REAL

Definition at line 300 of file orm.h.

◆ text

char* cwist_orm_value::text

CWIST_ORM_TYPE_TEXT

Definition at line 301 of file orm.h.

Referenced by cwist_orm_result_free().

◆ type

cwist_orm_value_type_t cwist_orm_value::type

Definition at line 298 of file orm.h.


The documentation for this struct was generated from the following file: