52 G_debug(3,
"Displaying column names for database connection of layer %d:",
114 G_debug(3,
"Displaying column types for database connection of layer %d:",
178 G_debug(3,
"Displaying column types for database connection of layer %d:",
const char * Vect_get_column_types(struct Map_info *Map, int field)
Fetches list of DB column types of vector map attribute table.
const char * Vect_get_column_names(struct Map_info *Map, int field)
Fetches list of DB column names of vector map attribute table.
const char * Vect_get_column_names_types(struct Map_info *Map, int field)
Fetches list of DB column names and types of vector map attribute table.
Main header of GRASS DataBase Management Interface.
int db_describe_table(dbDriver *, dbString *, dbTable **)
Describe table.
dbColumn * db_get_table_column(dbTable *, int)
Returns column structure for given table and column number.
int db_shutdown_driver(dbDriver *)
Closedown the driver, and free the driver structure.
int db_get_column_sqltype(dbColumn *)
Returns column sqltype for column.
int db_open_database(dbDriver *, dbHandle *)
Open database connection.
int db_close_database_shutdown_driver(dbDriver *)
Close driver/database connection.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
const char * db_get_column_name(dbColumn *)
Returns column name for given column.
int db_set_handle(dbHandle *, const char *, const char *)
Set handle (database and schema name)
dbDriver * db_start_driver(const char *)
Initialize a new dbDriver for db transaction.
void db_init_handle(dbHandle *)
Initialize handle (i.e database/schema)
void db_init_string(dbString *)
Initialize dbString.
const char * db_sqltype_name(int)
Get SQL data type description.
int db_get_table_number_of_columns(dbTable *)
Return the number of columns of the table.
void G_free(void *)
Free allocated memory.
char * G_str_concat(const char **, int, const char *, int)
String concatenation.
char * G_store(const char *)
Copy string to allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
struct field_info * Vect_get_field(struct Map_info *, int)
Get information about link to database (by layer number)
int Vect_get_num_dblinks(struct Map_info *)
Get number of defined dblinks.
void Vect_destroy_field_info(struct field_info *)
Free a struct field_info and all memory associated with it.
Layer (old: field) information.
char * table
Name of DB table.
char * driver
Name of DB driver ('sqlite', 'dbf', ...)