|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-a768b68929
|
DBMI Library (client) - open database connection. More...
#include <string.h>#include <stdlib.h>#include <unistd.h>#include <grass/spawn.h>#include <grass/dbmi.h>
Go to the source code of this file.
Macros | |
| #define | READ 0 |
| #define | WRITE 1 |
Functions | |
| dbDriver * | db_start_driver (const char *name) |
| Initialize a new dbDriver for db transaction. | |
DBMI Library (client) - open database connection.
SPDX-FileCopyrightText: 1999-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file start.c.
Initialize a new dbDriver for db transaction.
If name is NULL, the db name will be assigned connection.driverName.
| name | driver name |
Definition at line 48 of file start.c.
References close, db__recv_return_code(), db__set_protocol_fds(), db_copy_dbmscap_entry(), db_error(), db_free_dbmscap(), db_get_connection(), db_malloc(), DB_OK, db_read_dbmscap(), db_syserror(), _dbmscap::driverName, fdopen, G_debug(), G_get_gisrc_mode(), G_getenv_nofatal(), G_GISRC_MODE_FILE, G_GISRC_MODE_MEMORY, G_putenv(), G_spawn_ex(), name, _dbmscap::next, NULL, READ, SF_BACKGROUND, SF_CLOSE_DESCRIPTOR, SF_REDIRECT_DESCRIPTOR, and WRITE.
Referenced by db_start_driver_open_database(), IL_vector_input_data_2d(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_write_ascii().