Esempio n. 1
0
/*
 * Initialize database module
 * No function should be called before this
 */
db_con_t* db_oracle_init(const str* _url)
{
	return db_do_init(_url, (void *)db_oracle_new_connection);
}
Esempio n. 2
0
/*!
 * \brief Initialize database for future queries
 * \param _url URL of the database that should be opened
 * \return database connection on success, NULL on error
 * \note this function must be called prior to any database functions
 */
db1_con_t *db_postgres_init(const str* _url)
{
	return db_do_init(_url, (void*) db_postgres_new_connection);
}
Esempio n. 3
0
/*
 * Initialize database module
 * No function should be called before this
 */
db_con_t* db_unixodbc_init(const str* _url)
{
	return db_do_init(_url, (void*)db_unixodbc_new_connection);
}
/**
 * Initialize the database module.
 * No function should be called before this
 * \param _url URL used for initialization
 * \return zero on success, negative value on failure
 */
db1_con_t* erlang_srdb1_init(const str* _url)
{
	LM_DBG("erlang_srdb1_init %.*s \n", _url->len, _url->s);
	return db_do_init(_url, (void *)erlang_srdb1_new_connection);
}