16 #include <grass/dbmi.h>
18 static void print_priv();
37 fprintf(fd,
"ncols:%d\n", ncols);
38 for (col = 0; col < ncols; col++) {
53 dbString value_string;
61 fprintf(fd,
"default:");
68 fprintf(fd,
"nullok:%s\n",
74 static void print_priv(FILE *
fd,
char *
label,
int priv)
76 fprintf(fd,
"%s:", label);
dbColumn * db_get_table_column(dbTable *table, int n)
returns column structure for given table and column number
const char * db_sqltype_name(int sqltype)
returns sqltype description
const char * db_get_column_description(dbColumn *column)
returns column description for given column
void db_print_table_definition(FILE *fd, dbTable *table)
Print table definition info.
const char * db_get_column_name(dbColumn *column)
returns column name for given column
int db_get_column_update_priv(dbColumn *column)
int db_get_column_precision(dbColumn *column)
void db_print_column_definition(FILE *fd, dbColumn *column)
Print column definition info.
int db_get_column_select_priv(dbColumn *column)
int db_get_column_length(dbColumn *column)
int db_get_column_scale(dbColumn *column)
int db_get_column_sqltype(dbColumn *column)
returns column sqltype for column (the function db_sqltype_name() returns sqltype description) ...
int db_convert_column_default_value_to_string(dbColumn *column, dbString *string)
const char * db_get_table_description(dbTable *table)
int db_get_table_number_of_columns(dbTable *table)
int db_get_table_delete_priv(dbTable *table)
int db_test_column_has_default_value(dbColumn *column)
int db_get_table_insert_priv(dbTable *table)
char * db_get_string(dbString *x)
int db_test_column_null_allowed(dbColumn *column)
const char * db_get_table_name(dbTable *table)
void db_init_string(dbString *x)