GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
Go to the source code of this file.
Functions | |
dbColumn * | db_get_table_column (dbTable *table, int n) |
returns column structure for given table and column number More... | |
dbValue * | db_get_column_value (dbColumn *column) |
returns column value for given column structure More... | |
dbValue * | db_get_column_default_value (dbColumn *column) |
returns column default value for given column structure More... | |
void | db_set_column_sqltype (dbColumn *column, int sqltype) |
define column sqltype for column (the function db_sqltype_name() returns sqltype description) More... | |
void | db_set_column_host_type (dbColumn *column, int type) |
int | db_get_column_scale (dbColumn *column) |
void | db_set_column_scale (dbColumn *column, int scale) |
int | db_get_column_precision (dbColumn *column) |
void | db_set_column_precision (dbColumn *column, int precision) |
int | db_get_column_sqltype (dbColumn *column) |
returns column sqltype for column (the function db_sqltype_name() returns sqltype description) More... | |
int | db_get_column_host_type (dbColumn *column) |
void | db_set_column_has_defined_default_value (dbColumn *column) |
void | db_set_column_has_undefined_default_value (dbColumn *column) |
void | db_unset_column_has_default_value (dbColumn *column) |
int | db_test_column_has_default_value (dbColumn *column) |
int | db_test_column_has_defined_default_value (dbColumn *column) |
int | db_test_column_has_undefined_default_value (dbColumn *column) |
void | db_set_column_use_default_value (dbColumn *column) |
void | db_unset_column_use_default_value (dbColumn *column) |
int | db_test_column_use_default_value (dbColumn *column) |
void | db_set_column_null_allowed (dbColumn *column) |
void | db_unset_column_null_allowed (dbColumn *column) |
int | db_test_column_null_allowed (dbColumn *column) |
int | db_get_column_length (dbColumn *column) |
void | db_set_column_length (dbColumn *column, int length) |
void | db_set_column_select_priv_granted (dbColumn *column) |
void | db_set_column_select_priv_not_granted (dbColumn *column) |
int | db_get_column_select_priv (dbColumn *column) |
void | db_set_column_update_priv_granted (dbColumn *column) |
void | db_set_column_update_priv_not_granted (dbColumn *column) |
int | db_get_column_update_priv (dbColumn *column) |
void | db_init_column (dbColumn *column) |
int | db_set_column_name (dbColumn *column, const char *name) |
const char * | db_get_column_name (dbColumn *column) |
returns column name for given column More... | |
int | db_set_column_description (dbColumn *column, const char *description) |
const char * | db_get_column_description (dbColumn *column) |
returns column description for given column More... | |
void | db_free_column (dbColumn *column) |
frees column structure More... | |
void db_free_column | ( | dbColumn * | column | ) |
frees column structure
Definition at line 374 of file dbmi_base/column.c.
References db_free_string().
Referenced by db_d_add_column(), and db_free_table().
dbValue* db_get_column_default_value | ( | dbColumn * | column | ) |
returns column default value for given column structure
Definition at line 33 of file dbmi_base/column.c.
Referenced by db__recv_column_default_value(), db__send_column_default_value(), db_convert_column_default_value_to_string(), and db_convert_Cstring_to_column_default_value().
const char* db_get_column_description | ( | dbColumn * | column | ) |
returns column description for given column
Definition at line 364 of file dbmi_base/column.c.
References db_get_string().
Referenced by db__copy_table(), db_get_column(), and db_print_column_definition().
int db_get_column_host_type | ( | dbColumn * | column | ) |
Definition at line 110 of file dbmi_base/column.c.
int db_get_column_length | ( | dbColumn * | column | ) |
Definition at line 240 of file dbmi_base/column.c.
Referenced by db__copy_table(), db_print_column_definition(), db_table_to_sql(), and F_generate().
const char* db_get_column_name | ( | dbColumn * | column | ) |
returns column name for given column
Definition at line 344 of file dbmi_base/column.c.
References db_get_string().
Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), db_column_sqltype(), db_get_column(), db_print_column_definition(), db_table_to_sql(), F_generate(), G_sites_get_fields(), G_sites_open_old(), submit(), Vect_get_column_names(), and Vect_get_column_names_types().
int db_get_column_precision | ( | dbColumn * | column | ) |
Definition at line 84 of file dbmi_base/column.c.
Referenced by db__copy_table(), and db_print_column_definition().
int db_get_column_scale | ( | dbColumn * | column | ) |
Definition at line 64 of file dbmi_base/column.c.
Referenced by db__copy_table(), and db_print_column_definition().
int db_get_column_select_priv | ( | dbColumn * | column | ) |
Definition at line 280 of file dbmi_base/column.c.
Referenced by db_get_table_select_priv(), and db_print_column_definition().
int db_get_column_sqltype | ( | dbColumn * | column | ) |
returns column sqltype for column (the function db_sqltype_name() returns sqltype description)
Definition at line 105 of file dbmi_base/column.c.
Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), db__recv_column_default_value(), db__recv_column_value(), db__send_column_default_value(), db__send_column_value(), db_column_sqltype(), db_convert_column_default_value_to_string(), db_convert_column_value_to_string(), db_convert_Cstring_to_column_default_value(), db_convert_Cstring_to_column_value(), db_print_column_definition(), db_select_CatValArray(), db_select_int(), db_table_to_sql(), F_generate(), G_sites_get_fields(), G_sites_open_old(), submit(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_net_build_graph().
int db_get_column_update_priv | ( | dbColumn * | column | ) |
Definition at line 310 of file dbmi_base/column.c.
Referenced by db_get_table_update_priv(), and db_print_column_definition().
dbValue* db_get_column_value | ( | dbColumn * | column | ) |
returns column value for given column structure
Definition at line 23 of file dbmi_base/column.c.
Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), db__recv_column_value(), db__send_column_value(), db_convert_column_value_to_string(), db_convert_Cstring_to_column_value(), db_select_CatValArray(), db_select_int(), db_select_value(), F_generate(), G_sites_open_old(), NetA_init_distinct(), and NetA_init_timetable_from_db().
dbColumn* db_get_table_column | ( | dbTable * | table, |
int | n | ||
) |
returns column structure for given table and column number
Definition at line 11 of file dbmi_base/column.c.
Referenced by wxdigit.IVDigit::CopyCats(), db__copy_table(), db__recv_table_data(), db__send_table_data(), db_column_sqltype(), db_get_column(), db_print_table_definition(), db_select_CatValArray(), db_select_int(), db_select_value(), db_table_to_sql(), F_generate(), G_sites_get_fields(), G_sites_open_old(), NetA_init_distinct(), NetA_init_timetable_from_db(), submit(), Vect_get_column_names(), Vect_get_column_names_types(), and Vect_get_column_types().
void db_init_column | ( | dbColumn * | column | ) |
Definition at line 320 of file dbmi_base/column.c.
References db_init_string(), and db_zero().
Referenced by db_alloc_table(), db_d_add_column(), and db_get_column().
int db_set_column_description | ( | dbColumn * | column, |
const char * | description | ||
) |
Definition at line 354 of file dbmi_base/column.c.
References db_set_string().
Referenced by db__copy_table().
void db_set_column_has_defined_default_value | ( | dbColumn * | column | ) |
void db_set_column_has_undefined_default_value | ( | dbColumn * | column | ) |
void db_set_column_host_type | ( | dbColumn * | column, |
int | type | ||
) |
void db_set_column_length | ( | dbColumn * | column, |
int | length | ||
) |
Definition at line 250 of file dbmi_base/column.c.
Referenced by db__copy_table().
int db_set_column_name | ( | dbColumn * | column, |
const char * | name | ||
) |
Definition at line 334 of file dbmi_base/column.c.
References db_set_string().
Referenced by db__copy_table().
void db_set_column_null_allowed | ( | dbColumn * | column | ) |
void db_set_column_precision | ( | dbColumn * | column, |
int | precision | ||
) |
Definition at line 94 of file dbmi_base/column.c.
Referenced by db__copy_table().
void db_set_column_scale | ( | dbColumn * | column, |
int | scale | ||
) |
Definition at line 74 of file dbmi_base/column.c.
Referenced by db__copy_table().
void db_set_column_select_priv_granted | ( | dbColumn * | column | ) |
Definition at line 260 of file dbmi_base/column.c.
Referenced by db_set_table_select_priv_granted().
void db_set_column_select_priv_not_granted | ( | dbColumn * | column | ) |
Definition at line 270 of file dbmi_base/column.c.
Referenced by db_set_table_select_priv_not_granted().
void db_set_column_sqltype | ( | dbColumn * | column, |
int | sqltype | ||
) |
define column sqltype for column (the function db_sqltype_name() returns sqltype description)
Definition at line 44 of file dbmi_base/column.c.
Referenced by db__copy_table().
void db_set_column_update_priv_granted | ( | dbColumn * | column | ) |
Definition at line 290 of file dbmi_base/column.c.
Referenced by db_set_table_update_priv_granted().
void db_set_column_update_priv_not_granted | ( | dbColumn * | column | ) |
Definition at line 300 of file dbmi_base/column.c.
Referenced by db_set_table_update_priv_not_granted().
void db_set_column_use_default_value | ( | dbColumn * | column | ) |
int db_test_column_has_default_value | ( | dbColumn * | column | ) |
Definition at line 150 of file dbmi_base/column.c.
Referenced by db_print_column_definition().
int db_test_column_has_defined_default_value | ( | dbColumn * | column | ) |
int db_test_column_has_undefined_default_value | ( | dbColumn * | column | ) |
int db_test_column_null_allowed | ( | dbColumn * | column | ) |
Definition at line 230 of file dbmi_base/column.c.
Referenced by db_print_column_definition().
int db_test_column_use_default_value | ( | dbColumn * | column | ) |
void db_unset_column_has_default_value | ( | dbColumn * | column | ) |
void db_unset_column_null_allowed | ( | dbColumn * | column | ) |
void db_unset_column_use_default_value | ( | dbColumn * | column | ) |