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

Function tbl_create

lib_acl_cpp/samples/sqlite/sqlite.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 ")";
21
22static bool tbl_create(acl::db_handle& db)
23{
24 if (db.tbl_exists("group_tbl"))
25 {
26 printf("table exist\r\n");
27 return (true);
28 }
29 else if (db.sql_update(CREATE_TBL) == false)
30 {
31 printf("sql error\r\n");
32 return (false);
33 }
34 else
35 {
36 printf("create table ok\r\n");
37 return (true);
38 }
39}
40
41// ���ӱ�����
42static bool tbl_insert(acl::db_handle& db, int n)

Callers 1

mainFunction · 0.70

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…