68 for (cl = 0; cl < ncol; cl++) {
136 G_warning(
_(
"Unable to describe table <%s>"), tname);
144 G_debug(3,
"ncol = %d", ncols);
146 for (i = 0; i < ncols; i++) {
int db_column_sqltype(dbDriver *driver, const char *tab, const char *col)
Get column sqltype.
int db_column_Ctype(dbDriver *driver, const char *tab, const char *col)
Get column ctype.
int db_get_column(dbDriver *Driver, const char *tname, const char *cname, dbColumn **Column)
Get column structure by table and column name.
int db_describe_table(dbDriver *, dbString *, dbTable **)
Describe table.
dbColumn * db_get_table_column(dbTable *, int)
Returns column structure for given table and column number.
dbColumn * db_copy_column(dbColumn *, dbColumn *)
Copy a db column from source to destination.
int db_sqltype_to_Ctype(int)
Get C data type based on given SQL data type.
int db_get_column_sqltype(dbColumn *)
Returns column sqltype for column.
void db_free_table(dbTable *)
Free the table.
void db_free_string(dbString *)
Free allocated space for dbString.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
void db_init_string(dbString *)
Initialize dbString.
const char * db_get_column_name(dbColumn *)
Returns column name for given column.
int db_get_table_number_of_columns(dbTable *)
Return the number of columns of the table.
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