Functions for parsing a database URL and work with db identifier. More...
#include "db.h"#include "db_id.h"#include "../../dprint.h"#include "../../mem/mem.h"#include "../../pt.h"#include "../../ut.h"#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Definition in file db_id.c.
| id1 | first identifier | |
| id2 | second identifier |
Definition at line 272 of file db_id.c.
References db_id::database, db_id::host, db_id::password, db_id::pid, db_id::poolid, db_id::port, db_id::scheme, and db_id::username.
Referenced by pool_get().

| static int dupl_string | ( | char ** | dst, | |
| const char * | begin, | |||
| const char * | end | |||
| ) | [static] |
| dst | destination | |
| begin | start of the string | |
| end | end of the string |
Definition at line 46 of file db_id.c.
Referenced by parse_db_url().

| void free_db_id | ( | struct db_id * | id | ) |
| id | identifier |
Definition at line 308 of file db_id.c.
References db_id::database, db_id::host, db_id::password, db_id::scheme, and db_id::username.
Referenced by db_do_init2(), db_mysql_free_connection(), and db_postgres_free_connection().

| url | database URL | |
| pooling | whether or not a pooled connection may be used |
Definition at line 232 of file db_id.c.
References _str::len, parse_db_url(), db_id::pid, db_id::poolid, and _str::s.
Referenced by db_do_init2().


| id | filled id struct | |
| url | parsed URL |
Definition at line 69 of file db_id.c.
References db_id::database, dupl_string(), db_id::host, _str::len, db_id::password, _str::s, db_id::scheme, and db_id::username.
Referenced by new_db_id().


1.7.1