| 60 | |
| 61 | |
| 62 | int lb_connect_db(const str *db_url) |
| 63 | { |
| 64 | if (lb_db_handle) { |
| 65 | LM_CRIT("BUG - db connection found already open\n"); |
| 66 | return -1; |
| 67 | } |
| 68 | if ((lb_db_handle = lb_dbf.init(db_url)) == 0) |
| 69 | return -1; |
| 70 | |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | void lb_close_db(void) |
| 75 | { |
no outgoing calls
no test coverage detected