15 #include <grass/dbmi.h>
16 #include <grass/glocale.h>
34 G_debug(3,
"db_start_driver_open_database():\n drvname = %s, dbname = %s",
41 G_warning(_(
"Unable to start driver <%s>"), drvname);
46 G_warning(_(
"Unable to open database <%s> by driver <%s>"),
67 G_debug(2,
"db_close_database() result: %d (%d means success)",
72 G_debug(2,
"db_shutdown_driver() failed");
dbDriver * db_start_driver_open_database(const char *drvname, const char *dbname)
Open driver/database connection.
int db_close_database_shutdown_driver(dbDriver *driver)
Close driver/database connection.
int db_shutdown_driver(dbDriver *driver)
Closedown the driver, and free the driver structure.
int db_close_database(dbDriver *driver)
Close database connection.
int db_set_handle(dbHandle *handle, const char *dbName, const char *dbSchema)
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
int G_debug(int level, const char *msg,...)
Print debugging message.
void db_init_handle(dbHandle *handle)
int db_open_database(dbDriver *driver, dbHandle *handle)
Open database connection.
dbDriver * db_start_driver(const char *name)
Initialize a new dbDriver for db transaction.