GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
Go to the source code of this file.
Functions | |
dbTable * | db_alloc_table (int ncols) |
void | db_init_table (dbTable *table) |
void | db_free_table (dbTable *table) |
int | db_set_table_name (dbTable *table, const char *name) |
const char * | db_get_table_name (dbTable *table) |
int | db_set_table_description (dbTable *table, const char *description) |
const char * | db_get_table_description (dbTable *table) |
int | db_get_table_number_of_columns (dbTable *table) |
void | db_set_table_select_priv_granted (dbTable *table) |
void | db_set_table_select_priv_not_granted (dbTable *table) |
int | db_get_table_select_priv (dbTable *table) |
void | db_set_table_update_priv_granted (dbTable *table) |
void | db_set_table_update_priv_not_granted (dbTable *table) |
int | db_get_table_update_priv (dbTable *table) |
void | db_set_table_insert_priv_granted (dbTable *table) |
void | db_set_table_insert_priv_not_granted (dbTable *table) |
int | db_get_table_insert_priv (dbTable *table) |
void | db_set_table_delete_priv_granted (dbTable *table) |
void | db_set_table_delete_priv_not_granted (dbTable *table) |
int | db_get_table_delete_priv (dbTable *table) |
int | db_table_to_sql (dbTable *table, dbString *sql) |
Create SQL CREATE sring from table definition. More... | |
dbTable* db_alloc_table | ( | int | ncols | ) |
Definition at line 11 of file dbmi_base/table.c.
References db_calloc(), db_free(), db_init_column(), db_init_table(), db_malloc(), and NULL.
Referenced by db__copy_table(), db__recv_table_definition(), and db_alloc_cursor_table().
void db_free_table | ( | dbTable * | table | ) |
Definition at line 53 of file dbmi_base/table.c.
References db_free(), db_free_column(), and db_free_string().
Referenced by db_column_sqltype(), db_d_create_table(), db_d_describe_table(), db_free_cursor(), and db_get_column().
int db_get_table_delete_priv | ( | dbTable * | table | ) |
Definition at line 287 of file dbmi_base/table.c.
Referenced by db_print_table_definition().
const char* db_get_table_description | ( | dbTable * | table | ) |
Definition at line 105 of file dbmi_base/table.c.
References db_get_string().
Referenced by db_print_table_definition().
int db_get_table_insert_priv | ( | dbTable * | table | ) |
Definition at line 254 of file dbmi_base/table.c.
Referenced by db_print_table_definition().
const char* db_get_table_name | ( | dbTable * | table | ) |
Definition at line 83 of file dbmi_base/table.c.
References db_get_string().
Referenced by db_print_table_definition(), and db_table_to_sql().
int db_get_table_number_of_columns | ( | dbTable * | table | ) |
Definition at line 116 of file dbmi_base/table.c.
Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), db_column_sqltype(), db_get_column(), db_get_cursor_number_of_columns(), db_print_table_definition(), db_table_to_sql(), F_generate(), G_sites_get_fields(), G_sites_open_old(), submit(), Vect_get_column_names(), Vect_get_column_names_types(), and Vect_get_column_types().
int db_get_table_select_priv | ( | dbTable * | table | ) |
Definition at line 188 of file dbmi_base/table.c.
References db_get_column_select_priv().
int db_get_table_update_priv | ( | dbTable * | table | ) |
Definition at line 221 of file dbmi_base/table.c.
References db_get_column_update_priv().
void db_init_table | ( | dbTable * | table | ) |
Definition at line 40 of file dbmi_base/table.c.
References db_init_string(), and db_zero().
Referenced by db_alloc_table().
void db_set_table_delete_priv_granted | ( | dbTable * | table | ) |
Definition at line 265 of file dbmi_base/table.c.
void db_set_table_delete_priv_not_granted | ( | dbTable * | table | ) |
Definition at line 276 of file dbmi_base/table.c.
int db_set_table_description | ( | dbTable * | table, |
const char * | description | ||
) |
Definition at line 94 of file dbmi_base/table.c.
References db_set_string().
void db_set_table_insert_priv_granted | ( | dbTable * | table | ) |
Definition at line 232 of file dbmi_base/table.c.
void db_set_table_insert_priv_not_granted | ( | dbTable * | table | ) |
Definition at line 243 of file dbmi_base/table.c.
int db_set_table_name | ( | dbTable * | table, |
const char * | name | ||
) |
Definition at line 72 of file dbmi_base/table.c.
References db_set_string().
Referenced by db__copy_table(), and db_d_describe_table().
void db_set_table_select_priv_granted | ( | dbTable * | table | ) |
Definition at line 166 of file dbmi_base/table.c.
References db_set_column_select_priv_granted().
void db_set_table_select_priv_not_granted | ( | dbTable * | table | ) |
Definition at line 177 of file dbmi_base/table.c.
References db_set_column_select_priv_not_granted().
void db_set_table_update_priv_granted | ( | dbTable * | table | ) |
Definition at line 199 of file dbmi_base/table.c.
References db_set_column_update_priv_granted().
void db_set_table_update_priv_not_granted | ( | dbTable * | table | ) |
Definition at line 210 of file dbmi_base/table.c.
References db_set_column_update_priv_not_granted().
int db_table_to_sql | ( | dbTable * | table, |
dbString * | sql | ||
) |
Create SQL CREATE sring from table definition.
Definition at line 297 of file dbmi_base/table.c.
References buf, db_append_string(), db_get_column_length(), db_get_column_name(), db_get_column_sqltype(), db_get_string(), db_get_table_column(), db_get_table_name(), db_get_table_number_of_columns(), db_set_string(), db_sqltype_name(), db_sqltype_to_Ctype(), G_debug(), G_warning(), and sprintf().