GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
columnfmt.c
Go to the documentation of this file.
1
#include <grass/dbmi.h>
2
9
int
db_convert_Cstring_to_column_value
(
const
char
*Cstring, dbColumn * column)
10
{
11
dbValue *
value
;
12
int
sqltype;
13
14
sqltype =
db_get_column_sqltype
(column);
15
value =
db_get_column_value
(column);
16
return
db_convert_Cstring_to_value
(Cstring, sqltype, value);
17
}
18
25
int
26
db_convert_Cstring_to_column_default_value
(
const
char
*Cstring,
27
dbColumn * column)
28
{
29
dbValue *
value
;
30
int
sqltype;
31
32
sqltype =
db_get_column_sqltype
(column);
33
value =
db_get_column_default_value
(column);
34
return
db_convert_Cstring_to_value
(Cstring, sqltype, value);
35
}
36
43
int
db_convert_column_value_to_string
(dbColumn * column, dbString *
string
)
44
{
45
int
sqltype;
46
dbValue *
value
;
47
48
sqltype =
db_get_column_sqltype
(column);
49
value =
db_get_column_value
(column);
50
return
db_convert_value_to_string
(value, sqltype,
string
);
51
}
52
59
int
60
db_convert_column_default_value_to_string
(dbColumn * column,
61
dbString *
string
)
62
{
63
int
sqltype;
64
dbValue *
value
;
65
66
sqltype =
db_get_column_sqltype
(column);
67
value =
db_get_column_default_value
(column);
68
return
db_convert_value_to_string
(value, sqltype,
string
);
69
}
lib
db
dbmi_base
columnfmt.c
Generated on Sat Oct 5 2013 12:11:06 for GRASS Programmer's Manual by
1.8.4