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

Function create_option_tbl

app/net_tools/net_store.cpp:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29//////////////////////////////////////////////////////////////////////////
30
31bool create_option_tbl(acl::db_handle& db, const char* tbl_name,
32 const char* sql_create)
33{
34 if (db.tbl_exists(tbl_name))
35 {
36 logger("table(%s) exist", tbl_name);
37 return (true);
38 }
39 else if (db.sql_update(sql_create) == false)
40 {
41 logger_error("sql(%s) error", sql_create);
42 return (false);
43 }
44 else
45 {
46 logger("create table %s ok", tbl_name);
47 return (true);
48 }
49}
50
51//////////////////////////////////////////////////////////////////////////
52

Callers 1

open_option_tblFunction · 0.85

Calls 2

tbl_existsMethod · 0.45
sql_updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…