Expand description
§SZ-ORM C++ Bindings
Provides sz-orm-core’s Pool/Query API to C++ via extern "C" + C ABI
(SQLite backend, real and usable).
C++ side wrapper see cpp/szorm.h (use szorm::Pool after #include <szorm.h>).
Functions§
- sz_
orm_ ⚠cpp_ active_ model_ create - ActiveModel create (insert), return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ active_ model_ delete - ActiveModel delete, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ active_ model_ get - ActiveModel get (find), return JSON string (free with
sz_orm_cpp_string_free) - sz_
orm_ ⚠cpp_ active_ model_ save - ActiveModel save (insert), return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ active_ model_ set - ActiveModel set (update), return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ count - Count rows in table
- sz_
orm_ ⚠cpp_ error_ description - Get error description string
- sz_
orm_ ⚠cpp_ execute - Execute write statement, return heap-allocated
QueryResultC(free withsz_orm_cpp_result_free) - sz_
orm_ ⚠cpp_ execute_ batch - Execute batch SQL
- sz_
orm_ ⚠cpp_ model_ delete - Delete row on pool, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ model_ delete_ tx - Delete row in transaction, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ model_ find - Query row on pool, return JSON row array string (free with
sz_orm_cpp_string_free) - sz_
orm_ ⚠cpp_ model_ find_ tx - Query row in transaction, return JSON row array string (free with
sz_orm_cpp_string_free) - sz_
orm_ ⚠cpp_ model_ insert - Insert row on pool, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ model_ insert_ tx - Insert row in transaction, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ model_ update - Update row on pool, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ model_ update_ tx - Update row in transaction, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ ping - Health check (real acquire + ping)
- sz_
orm_ ⚠cpp_ pool_ free - Free connection pool
- sz_
orm_ ⚠cpp_ pool_ metrics - Get pool metrics
- sz_
orm_ ⚠cpp_ pool_ new - Create connection pool (real creation, SQLite backend)
- sz_
orm_ ⚠cpp_ pool_ stats - Get pool statistics
- sz_
orm_ ⚠cpp_ qb_ build - Build SQL + params JSON, return C string (free with
sz_orm_cpp_qb_result_free) - sz_
orm_ ⚠cpp_ qb_ free - Free QueryBuilder handle
- sz_
orm_ ⚠cpp_ qb_ limit - Set LIMIT
- sz_
orm_ ⚠cpp_ qb_ new - Create QueryBuilder, return handle (null indicates failure)
- sz_
orm_ ⚠cpp_ qb_ order_ by - Add ORDER BY clause
- sz_
orm_ ⚠cpp_ qb_ result_ free - Free build result string
- sz_
orm_ ⚠cpp_ qb_ table - Set table name on QueryBuilder
- sz_
orm_ ⚠cpp_ qb_ where_ eq - Add WHERE eq condition
- sz_
orm_ ⚠cpp_ query - Execute query, return JSON row array (caller frees with
sz_orm_cpp_string_free) - sz_
orm_ ⚠cpp_ query_ one - Query single row as JSON
- sz_
orm_ ⚠cpp_ query_ result_ free - Free query result
- sz_
orm_ ⚠cpp_ result_ free - Free result returned by
sz_orm_cpp_execute - sz_
orm_ ⚠cpp_ string_ free - Free string returned by
sz_orm_cpp_query - sz_
orm_ ⚠cpp_ table_ exists - Check if table exists
- sz_
orm_ ⚠cpp_ transaction_ begin - Begin transaction, return transaction handle (null indicates failure)
- sz_
orm_ ⚠cpp_ transaction_ commit - Commit transaction, return 1=success 0=failure
- sz_
orm_ ⚠cpp_ transaction_ execute - Execute SQL in transaction, return heap-allocated
QueryResultC - sz_
orm_ ⚠cpp_ transaction_ free - Free transaction handle (auto rollback if still active)
- sz_
orm_ ⚠cpp_ transaction_ rollback - Rollback transaction, return 1=success 0=failure
- sz_
orm_ cpp_ version - Get version number