#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | db_table_exists (const char *drvname, const char *dbname, const char *tabname) |
Check if table exists. | |
int | db_get_table_number_of_rows (dbDriver *driver, dbString *sql) |
Get number of rows of table. |
(C) 1999-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file dbmi_client/table.c.
int db_get_table_number_of_rows | ( | dbDriver * | driver, | |
dbString * | sql | |||
) |
Get number of rows of table.
driver | db driver | |
sql | SQL statement |
-1
Definition at line 104 of file dbmi_client/table.c.
References db_close_cursor(), db_close_database_shutdown_driver(), db_get_num_rows(), db_get_string(), and db_open_select_cursor().
int db_table_exists | ( | const char * | drvname, | |
const char * | dbname, | |||
const char * | tabname | |||
) |
Check if table exists.
drvname | driver name | |
dbname | database name | |
tabname | table name |
0 doesn't exist
-1 error
Definition at line 32 of file dbmi_client/table.c.
References db_close_database_shutdown_driver(), db_free_string_array(), db_get_string(), db_list_tables(), and db_start_driver_open_database().