GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
dbmi_base/table.c File Reference
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
Include dependency graph for dbmi_base/table.c:

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...
 

Function Documentation

dbTable* db_alloc_table ( int  ncols)
void db_free_table ( dbTable *  table)
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_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 
)