MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / group_db_bind

Function group_db_bind

modules/group/group.c:191–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191int group_db_bind(const str* db_url)
192{
193 if (db_bind_mod(db_url, &group_dbf)<0){
194 LM_ERR("unable to bind to the database module\n");
195 return -1;
196 }
197
198 if (!DB_CAPABILITY(group_dbf, DB_CAP_QUERY)) {
199 LM_ERR("database module does not implement 'query' function\n");
200 return -1;
201 }
202
203 return 0;
204}
205
206
207void group_db_close(void)

Callers 1

mod_initFunction · 0.85

Calls 1

db_bind_modFunction · 0.85

Tested by

no test coverage detected