Connect to a database
#include <qdb/qdb.h> qdb_hdl_t *qdb_connect( const char *dbname, int flags );
Setting this bit also makes subsequent calls to qdb_connect() non-blocking (as if the -T commandline option were 0).
qdb
This function connects to the database specified by dbname, and returns a pointer to the database connection. You need to call this function for every database, or for concurrent access to one database.
You should disconnect all connections with a call to qdb_disconnect() when you're finished using them.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |