GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
macros.h
Go to the documentation of this file.
1
#define DB_RETURN_ERR return(db_get_error_code());
2
#define DB_START_PROCEDURE_CALL(x) \
3
{if(db__start_procedure_call(x)!=DB_OK) DB_RETURN_ERR}
4
#define DB_RECV_RETURN_CODE(x) \
5
{if(db__recv_return_code(x)!=DB_OK) DB_RETURN_ERR}
6
7
#define DB_SEND_SUCCESS() \
8
{if(db__send_success()!=DB_OK) DB_RETURN_ERR}
9
#define DB_SEND_FAILURE() \
10
{if(db__send_failure()!=DB_OK) DB_RETURN_ERR}
11
12
#define DB_SEND_STRING(x) \
13
{if(db__send_string(x)!=DB_OK) DB_RETURN_ERR}
14
#define DB_SEND_STRING_ARRAY(x,n) \
15
{if(db__send_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
16
#define DB_SEND_C_STRING(x) \
17
{if(db__send_Cstring(x)!=DB_OK) DB_RETURN_ERR}
18
#define DB_RECV_STRING(x) \
19
{if(db__recv_string(x)!=DB_OK) DB_RETURN_ERR}
20
#define DB_RECV_STRING_ARRAY(x,n) \
21
{if(db__recv_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
22
23
#define DB_SEND_CHAR(x) \
24
{if(db__send_char(x)!=DB_OK) DB_RETURN_ERR}
25
#define DB_RECV_CHAR(x) \
26
{if(db__recv_char(x)!=DB_OK) DB_RETURN_ERR}
27
28
#define DB_SEND_SHORT(x) \
29
{if(db__send_short(x)!=DB_OK) DB_RETURN_ERR}
30
#define DB_RECV_SHORT(x) \
31
{if(db__recv_short(x)!=DB_OK) DB_RETURN_ERR}
32
#define DB_SEND_SHORT_ARRAY(x,n) \
33
{if(db__send_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
34
#define DB_RECV_SHORT_ARRAY(x,n) \
35
{if(db__recv_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
36
37
#define DB_SEND_INT(x) \
38
{if(db__send_int(x)!=DB_OK) DB_RETURN_ERR}
39
#define DB_RECV_INT(x) \
40
{if(db__recv_int(x)!=DB_OK) DB_RETURN_ERR}
41
42
#define DB_SEND_FLOAT(x) \
43
{if(db__send_float(x)!=DB_OK) DB_RETURN_ERR}
44
#define DB_RECV_FLOAT(x) \
45
{if(db__recv_float(x)!=DB_OK) DB_RETURN_ERR}
46
47
#define DB_SEND_DOUBLE(x) \
48
{if(db__send_double(x)!=DB_OK) DB_RETURN_ERR}
49
#define DB_RECV_DOUBLE(x) \
50
{if(db__recv_double(x)!=DB_OK) DB_RETURN_ERR}
51
52
#define DB_SEND_DATETIME(x) \
53
{if(db__send_datetime(x)!=DB_OK) DB_RETURN_ERR}
54
#define DB_RECV_DATETIME(x) \
55
{if(db__recv_datetime(x)!=DB_OK) DB_RETURN_ERR}
56
57
#define DB_SEND_HANDLE(x) \
58
{if(db__send_handle(x)!=DB_OK) DB_RETURN_ERR}
59
#define DB_RECV_HANDLE(x) \
60
{if(db__recv_handle(x)!=DB_OK) DB_RETURN_ERR}
61
62
#define DB_SEND_TABLE_DEFINITION(x) \
63
{if(db__send_table_definition(x)!=DB_OK) DB_RETURN_ERR}
64
#define DB_RECV_TABLE_DEFINITION(x) \
65
{if(db__recv_table_definition(x)!=DB_OK) DB_RETURN_ERR}
66
67
#define DB_SEND_TABLE_DATA(x) \
68
{if(db__send_table_data(x)!=DB_OK) DB_RETURN_ERR}
69
#define DB_RECV_TABLE_DATA(x) \
70
{if(db__recv_table_data(x)!=DB_OK) DB_RETURN_ERR}
71
72
#define DB_SEND_TABLE_PRIV(x) \
73
{if(db__send_table_priv(x)!=DB_OK) DB_RETURN_ERR}
74
#define DB_RECV_TABLE_PRIV(x) \
75
{if(db__recv_table_priv(x)!=DB_OK) DB_RETURN_ERR}
76
77
#define DB_SEND_COLUMN_PRIVS(x) \
78
{if(db__send_column_privs(x)!=DB_OK) DB_RETURN_ERR}
79
#define DB_RECV_COLUMN_PRIVS(x) \
80
{if(db__recv_column_privs(x)!=DB_OK) DB_RETURN_ERR}
81
82
#define DB_SEND_COLUMN_DEFINITION(x) \
83
{if(db__send_column_definition(x)!=DB_OK) DB_RETURN_ERR}
84
#define DB_RECV_COLUMN_DEFINITION(x) \
85
{if(db__recv_column_definition(x)!=DB_OK) DB_RETURN_ERR}
86
87
#define DB_SEND_COLUMN_VALUE(x) \
88
{if(db__send_column_value(x)!=DB_OK) DB_RETURN_ERR}
89
#define DB_RECV_COLUMN_VALUE(x) \
90
{if(db__recv_column_value(x)!=DB_OK) DB_RETURN_ERR}
91
92
#define DB_SEND_COLUMN_DEFAULT_VALUE(x) \
93
{if(db__send_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
94
#define DB_RECV_COLUMN_DEFAULT_VALUE(x) \
95
{if(db__recv_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
96
97
#define DB_SEND_TOKEN(x) \
98
{if(db__send_token(x)!=DB_OK) DB_RETURN_ERR}
99
#define DB_RECV_TOKEN(x) \
100
{if(db__recv_token(x)!=DB_OK) DB_RETURN_ERR}
101
102
#define DB_SEND_INDEX(x) \
103
{if(db__send_index(x)!=DB_OK) DB_RETURN_ERR}
104
#define DB_SEND_INDEX_ARRAY(x,n) \
105
{if(db__send_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
106
#define DB_RECV_INDEX(x) \
107
{if(db__recv_index(x)!=DB_OK) DB_RETURN_ERR}
108
#define DB_RECV_INDEX_ARRAY(x,n) \
109
{if(db__recv_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
110
111
#define DB_SEND_FK(x) \
112
{if(db__send_fk(x)!=DB_OK) DB_RETURN_ERR}
113
#define DB_SEND_FK_ARRAY(x,n) \
114
{if(db__send_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}
115
#define DB_RECV_FK(x) \
116
{if(db__recv_fk(x)!=DB_OK) DB_RETURN_ERR}
117
#define DB_RECV_FK_ARRAY(x,n) \
118
{if(db__recv_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}
lib
db
dbmi_base
macros.h
Generated on Mon May 31 2021 05:21:30 for GRASS GIS 7 Programmer's Manual by
1.8.13