#include "../str.h"


Go to the source code of this file.
Data Structures | |
| struct | db_id |
Functions | |
| unsigned char | cmp_db_id (const struct db_id *id1, const struct db_id *id2) |
| void | free_db_id (struct db_id *id) |
| struct db_id * | new_db_id (const str *url) |
Definition in file db_id.h.
Compare two connection identifiers
| id1 | first identifier | |
| id2 | second identifier |
| id1 | first identifier | |
| id2 | second identifier |
Definition at line 259 of file db_id.c.
References db_id::database, db_id::host, db_id::password, db_id::port, db_id::scheme, and db_id::username.
Referenced by pool_get().
| void free_db_id | ( | struct db_id * | id | ) |
Free a connection identifier
| id | the identifier that should released |
| id | identifier |
Definition at line 285 of file db_id.c.
References db_id::database, db_id::host, db_id::password, pkg_free, db_id::scheme, and db_id::username.
Referenced by db_do_init(), db_mysql_free_connection(), db_oracle_free_connection(), and db_postgres_free_connection().
Create a new connection identifier
| url | database URL |
| url | database URL |
Definition at line 224 of file db_id.c.
References _str::len, LM_ERR, parse_db_url(), pkg_free, pkg_malloc, and _str::s.
Referenced by db_do_init().
1.5.6