MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / prepStatement

Function prepStatement

src/hx/libs/sqlite/Sqlite.cpp:371–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369
370
371static sqlite3_stmt *prepStatement(Dynamic handle,int n)
372{
373 result *r = getResult(handle,true);
374 if( n < 0 || n >= r->ncols )
375 hx::Throw( HX_CSTRING("Sqlite: Invalid index") );
376
377 if( r->first )
378 _hx_sqlite_result_next(handle);
379
380 if( r->done )
381 hx::Throw( HX_CSTRING("Sqlite: no more results") );
382
383 return r->r;
384}
385
386/**
387 result_get : 'result -> n:int -> string

Callers 3

_hx_sqlite_result_getFunction · 0.85

Calls 3

ThrowFunction · 0.85
_hx_sqlite_result_nextFunction · 0.85
getResultFunction · 0.70

Tested by

no test coverage detected