36 int i,
count, found = 0;
41 if (strchr(tabname,
'.'))
46 G_warning(
_(
"Unable open database <%s> by driver <%s>"), dbname,
59 for (i = 0; i <
count; i++) {
62 if (!full && (c = strchr(buf,
'.'))) {
65 G_debug(2,
"table = %s -> %s", buf, bufp);
77 for (i = 0; i <
count; i++) {
80 if (!full && (c = strchr(buf,
'.'))) {
int db_list_tables(dbDriver *, dbString **, int *, int)
List available tables for given connection.
int db_open_select_cursor(dbDriver *, dbString *, dbCursor *, int)
Open select cursor.
char * db_get_string(const dbString *)
Get string.
int db_get_table_number_of_rows(dbDriver *driver, dbString *sql)
Get number of rows of table.
dbDriver * db_start_driver_open_database(const char *, const char *)
Open driver/database connection.
int db_close_database_shutdown_driver(dbDriver *)
Close driver/database connection.
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
int db_get_num_rows(dbCursor *)
Get number of selected rows.
const struct driver * driver
void db_free_string_array(dbString *, int)
Free allocated dbString array.
int db_table_exists(const char *drvname, const char *dbname, const char *tabname)
Check if table exists.
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
int db_close_cursor(dbCursor *)
Close cursor.