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

Method pgsql_add

lib_fiber/samples-c++/pgsql/main.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 void pgsql_add(int count)
20 {
21 for (int i = 0; i < count; i++)
22 {
23 acl::db_handle* db = dbp_.peek_open();
24 if (db == NULL)
25 {
26 printf("peek db connection error i: %d\r\n", i);
27 break;
28 }
29
30 add(*db, i);
31 dbp_.put(db);
32 }
33 }
34
35 void pgsql_get(int count)
36 {

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 2

peek_openMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected