| 172 | |
| 173 | |
| 174 | int group_db_init(const str* db_url) |
| 175 | { |
| 176 | if (group_dbf.init==0){ |
| 177 | LM_CRIT("null dbf \n"); |
| 178 | goto error; |
| 179 | } |
| 180 | group_dbh=group_dbf.init(db_url); |
| 181 | if (group_dbh==0){ |
| 182 | LM_ERR("unable to connect to the database\n"); |
| 183 | goto error; |
| 184 | } |
| 185 | return 0; |
| 186 | error: |
| 187 | return -1; |
| 188 | } |
| 189 | |
| 190 | |
| 191 | int group_db_bind(const str* db_url) |
no outgoing calls
no test coverage detected