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

Column-typed result set produced by cwist_orm_query_typed(). More...

#include <orm.h>

Collaboration diagram for cwist_orm_result:

Public Attributes

size_t column_count
 
size_t row_count
 
char ** columns
 
cwist_orm_value_t * cells
 

Detailed Description

Column-typed result set produced by cwist_orm_query_typed().

Cells are stored row-major: cell (row, column) lives at cells[row * column_count + column]. Column names come from the result-producing statement. Everything is released by cwist_orm_result_free().

Definition at line 314 of file orm.h.

Member Data Documentation

◆ cells

cwist_orm_value_t* cwist_orm_result::cells

Definition at line 318 of file orm.h.

Referenced by cwist_orm_query_typed(), cwist_orm_result_cell(), and cwist_orm_result_free().

◆ column_count

size_t cwist_orm_result::column_count

◆ columns

char** cwist_orm_result::columns

◆ row_count

size_t cwist_orm_result::row_count

Definition at line 316 of file orm.h.

Referenced by cwist_orm_query_typed(), cwist_orm_result_cell(), and cwist_orm_result_free().


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