37 int i,
count, found = 0;
42 if (strchr(tabname,
'.'))
47 G_warning(
_(
"Unable open database <%s> by driver <%s>"), dbname,
60 for (i = 0; i <
count; i++) {
63 if (!
full && (c = strchr(buf,
'.'))) {
66 G_debug(2,
"table = %s -> %s", buf, bufp);
78 for (i = 0; i <
count; i++) {
81 if (!
full && (c = strchr(buf,
'.'))) {
int db_table_exists(const char *drvname, const char *dbname, const char *tabname)
Check if table exists.
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_get_num_rows(dbCursor *)
Get number of selected rows.
int db_close_database_shutdown_driver(dbDriver *)
Close driver/database connection.
void db_free_string_array(dbString *, int)
Free allocated dbString array.
int db_list_tables(dbDriver *, dbString **, int *, int)
List available tables for given connection.
int db_close_cursor(dbCursor *)
Close cursor.
int db_open_select_cursor(dbDriver *, dbString *, dbCursor *, int)
Open select cursor.
char * db_get_string(const dbString *)
Get string.
void G_warning(const char *,...) __attribute__((format(printf
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
int G_debug(int, const char *,...) __attribute__((format(printf
const struct driver * driver