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_describe_table(dbDriver *, dbString *, dbTable **)
Describe table.
int db_column_Ctype(dbDriver *driver, const char *tab, const char *col)
Get column ctype.
const char * db_get_column_name(dbColumn *)
Returns column name for given column.
void db_init_string(dbString *)
Initialize dbString.
void db_free_table(dbTable *)
Free the table.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
int db_column_sqltype(dbDriver *driver, const char *tab, const char *col)
Get column sqltype.
int db_get_column_sqltype(dbColumn *)
Returns column sqltype for column.
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
int db_sqltype_to_Ctype(int)
Get C data type based on given SQL data type.
int db_get_column(dbDriver *Driver, const char *tname, const char *cname, dbColumn **Column)
Get column structure by table and column name.
void G_warning(const char *,...) __attribute__((format(printf
dbColumn * db_get_table_column(dbTable *, int)
Returns column structure for given table and column number.
int db_get_table_number_of_columns(dbTable *)
Return the number of columns of the table.
dbColumn * db_copy_column(dbColumn *, dbColumn *)
Copy a db column from source to destination.
int G_debug(int, const char *,...) __attribute__((format(printf
void db_free_string(dbString *)
Free allocated space for dbString.