GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
columnfmt.c File Reference

DBMI Library (base) - columns formatting. More...

#include <grass/dbmi.h>
Include dependency graph for columnfmt.c:

Go to the source code of this file.

Functions

int db_convert_Cstring_to_column_value (const char *Cstring, dbColumn *column)
 ? More...
 
int db_convert_Cstring_to_column_default_value (const char *Cstring, dbColumn *column)
 ? More...
 
int db_convert_column_value_to_string (dbColumn *column, dbString *string)
 ? More...
 
int db_convert_column_default_value_to_string (dbColumn *column, dbString *string)
 ? More...
 

Detailed Description

DBMI Library (base) - columns 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.

Author
Joel Jones (CERL/UIUC), Radim Blazek
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file columnfmt.c.

Function Documentation

◆ db_convert_column_default_value_to_string()

int db_convert_column_default_value_to_string ( dbColumn column,
dbString string 
)

?

Parameters
columnpointer to dbColumn
stringpointer to dbString
Returns
?

Definition at line 80 of file columnfmt.c.

References db_convert_value_to_string(), db_get_column_default_value(), and db_get_column_sqltype().

Referenced by db_print_column_definition().

◆ db_convert_column_value_to_string()

int db_convert_column_value_to_string ( dbColumn column,
dbString string 
)

?

Parameters
columnpointer to dbColumn
stringpointer to dbString
Returns
?

Definition at line 62 of file columnfmt.c.

References db_convert_value_to_string(), db_get_column_sqltype(), and db_get_column_value().

◆ db_convert_Cstring_to_column_default_value()

int db_convert_Cstring_to_column_default_value ( const char *  Cstring,
dbColumn column 
)

?

Parameters
Cstringstring buffer
columnpointer to dbColumn
Returns
?

Definition at line 43 of file columnfmt.c.

References db_convert_Cstring_to_value(), db_get_column_default_value(), and db_get_column_sqltype().

◆ db_convert_Cstring_to_column_value()

int db_convert_Cstring_to_column_value ( const char *  Cstring,
dbColumn column 
)

?

Parameters
Cstringstring buffer
columnpointer to dbColumn
Returns
?

Definition at line 25 of file columnfmt.c.

References db_convert_Cstring_to_value(), db_get_column_sqltype(), and db_get_column_value().