| 
    GRASS Programmer's Manual
    6.5.svn(2014)-r66266
    
   | 
 
Functions | |
| def | db_describe | 
| Return the list of columns for a database table (interface to `db.describe -c').  More... | |
| def | db_connection | 
| Return the current database connection parameters (interface to `db.connect -p').  More... | |
| def | db_select | 
| Perform SQL select statement.  More... | |
| def python.db.db_connection | ( | ) | 
Return the current database connection parameters (interface to `db.connect -p').
Example:
Definition at line 73 of file db.py.
References python.core.parse_key_val(), and python.core.read_command().
| def python.db.db_describe | ( | table, | |
| args | |||
| ) | 
Return the list of columns for a database table (interface to `db.describe -c').
Example:
| table | table name | 
| args | 
Definition at line 33 of file db.py.
References python.core.fatal(), and python.core.read_command().
| def python.db.db_select | ( | sql = None,  | 
        |
filename = None,  | 
        |||
table = None,  | 
        |||
| args | |||
| ) | 
Perform SQL select statement.
Note: one of sql, filename, or table arguments must be provided.
Examples:
Simplyfied usage
performs SELECT * FROM busstopsall.
| sql | SQL statement to perform (or None) | 
| filename | name of file with SQL statements (or None) | 
| table | name of table to query (or None) | 
| args | see db.select arguments | 
Definition at line 87 of file db.py.
References python.core.fatal(), python.core.run_command(), utils.split(), and python.core.try_remove().