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

Method pgsql_get

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

Source from the content-addressed store, hash-verified

33 }
34
35 void pgsql_get(int count)
36 {
37 for (int i = 0; i < count; i++)
38 {
39 acl::db_handle* db = dbp_.peek_open();
40 if (db == NULL)
41 {
42 printf("peek db connection error i: %d\r\n", i);
43 break;
44 }
45
46 get(*db, i);
47 dbp_.put(db);
48 }
49 }
50
51private:
52 acl::db_pool& dbp_;

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 3

peek_openMethod · 0.80
getFunction · 0.50
putMethod · 0.45

Tested by

no test coverage detected