18 static void print_priv(FILE *fd,
char *label,
int priv);
37 fprintf(fd,
"ncols:%d\n", ncols);
38 for (col = 0; col < ncols; col++) {
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);
const char * db_sqltype_name(int)
Get SQL data type description.
int db_get_column_select_priv(dbColumn *)
Get select privileges.
int db_convert_column_default_value_to_string(dbColumn *, dbString *)
?
dbColumn * db_get_table_column(dbTable *, int)
Returns column structure for given table and column number.
int db_get_column_length(dbColumn *)
Get column's length.
const char * db_get_table_name(dbTable *)
Get the name of the table.
int db_get_column_sqltype(dbColumn *)
Returns column sqltype for column.
int db_test_column_null_allowed(dbColumn *)
Checks if null value is allowed.
int db_get_table_insert_priv(dbTable *)
Get table insert privileges.
int db_get_table_delete_priv(dbTable *)
Get table delete privileges.
int db_get_column_scale(dbColumn *)
Get column scale.
void db_init_string(dbString *)
Initialize dbString.
int db_get_column_precision(dbColumn *)
Get column precision.
int db_test_column_has_default_value(dbColumn *)
Check if column has defined default value.
const char * db_get_column_name(dbColumn *)
Returns column name for given column.
const char * db_get_table_description(dbTable *)
Get the description of the table.
int db_get_column_update_priv(dbColumn *)
Get update privileges.
char * db_get_string(const dbString *)
Get string.
const char * db_get_column_description(dbColumn *)
Returns column description for given column.
int db_get_table_number_of_columns(dbTable *)
Return the number of columns of the table.
void db_print_table_definition(FILE *fd, dbTable *table)
Print table definition info.
void db_print_column_definition(FILE *fd, dbColumn *column)
Print column definition info.