MCPcopy Create free account
hub / github.com/acl-dev/acl / sqlite_rows_save

Function sqlite_rows_save

lib_acl_cpp/src/db/db_sqlite.cpp:505–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505static void sqlite_rows_save(char** results, int nrow,
506 int ncolumn, db_rows& result)
507{
508 int n = 0;
509
510 // ȡ��������
511 for (; n < ncolumn; n++) {
512 result.names_.push_back(results[n]);
513 }
514
515 // ��ʼȡ�����������ݽ�������붯̬������
516 for (int i = 0; i < nrow; i++) {
517 db_row* row = NEW db_row(result.names_);
518 for (int j = 0; j < ncolumn; j++) {
519 const char* value = results[n++];
520 size_t len = value ? strlen(value) : 0;
521 row->push_back(value, len);
522 }
523 result.rows_.push_back(row);
524 }
525 result.result_tmp_ = results;
526 result.result_free = sqlite_rows_free;
527}
528
529//////////////////////////////////////////////////////////////////////////
530

Callers 1

exec_sqlMethod · 0.85

Calls 2

db_rowClass · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…