GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
DBMI Library (base) - value formatting. More...
#include <stdio.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_convert_Cstring_to_value (const char *Cstring, int sqltype, dbValue *value) |
Convert string to value. More... | |
int | db_convert_value_to_string (dbValue *value, int sqltype, dbString *string) |
Convert value to string. More... | |
DBMI Library (base) - value formatting.
(C) 1999-2009, 2011 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 valuefmt.c.
int db_convert_Cstring_to_value | ( | const char * | Cstring, |
int | sqltype, | ||
dbValue * | value | ||
) |
Convert string to value.
Cstring | string buffer | |
sqltype | SQL data type | |
[out] | value | pointer to dbValue |
Definition at line 31 of file valuefmt.c.
Referenced by db_convert_Cstring_to_column_default_value(), and db_convert_Cstring_to_column_value().
Convert value to string.
value | pointer to dbValue | |
sqltype | SQL data type | |
[out] | string | pointer to dbString |
Definition at line 68 of file valuefmt.c.
References _, DB_C_TYPE_DATETIME, DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, DB_C_TYPE_STRING, db_convert_value_datetime_into_string(), db_error(), DB_FAILED, db_get_value_double(), db_get_value_int(), db_get_value_string(), db_set_string(), db_sqltype_to_Ctype(), db_test_value_isnull(), and G_trim_decimal().
Referenced by db_convert_column_default_value_to_string(), and db_convert_column_value_to_string().