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

Method get_conf

lib_acl_cpp/src/db/db_sqlite.cpp:704–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704const char* db_sqlite::get_conf(const char* pragma, string& out)
705{
706 if (!exec_sql(pragma)) {
707 return NULL;
708 } else if (length() == 0) {
709 free_result();
710 return NULL;
711 } else {
712 const db_row* row = (*this)[(size_t) 0];
713 acl_assert(row != NULL);
714 const char* ptr = (*row)[(size_t) 0];
715 if (ptr == NULL) {
716 free_result();
717 return NULL;
718 }
719 out = ptr;
720 free_result();
721 return out.c_str();
722 }
723}
724
725// sqlite ��һЩ����ѡ��
726const char* __pragmas[] =

Callers 1

mainFunction · 0.80

Calls 2

lengthFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected