16 #include <grass/dbmi.h> 96 for (i = 0; i <
count; i++)
116 for (i = 0; i <
count; i++)
void db_free_handle(dbHandle *handle)
Free dbHandle structure.
void db_free_handle_array(dbHandle *handle, int count)
Free array of handles.
char * db_get_string(const dbString *x)
Get string.
const char * db_get_handle_dbschema(dbHandle *handle)
Get handle schema name.
dbHandle * db_alloc_handle_array(int count)
Allocate array of handles.
void * db_calloc(int n, int m)
Allocate memory.
int db_set_handle(dbHandle *handle, const char *dbName, const char *dbSchema)
Set handle (database and schema name)
void db_init_handle(dbHandle *handle)
Initialize handle (i.e database/schema)
int db_set_string(dbString *x, const char *s)
Inserts string to dbString (enlarge string)
void db_free_string(dbString *x)
Free allocated space for dbString.
const char * db_get_handle_dbname(dbHandle *handle)
Get handle database name.
void db_init_string(dbString *x)
Initialize dbString.
void db_free(void *s)
Free allocated memory.