File: gda-sqlite-meta.h

package info (click to toggle)
libgda5 5.2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 75,256 kB
  • ctags: 49,218
  • sloc: ansic: 461,759; sh: 11,808; xml: 10,466; yacc: 5,160; makefile: 4,327; php: 1,416; java: 1,300; python: 896; sql: 879; perl: 116
file content (210 lines) | stat: -rw-r--r-- 11,254 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/*
 * Copyright (C) 2008 - 2011 Vivien Malerba <malerba@gnome-db.org>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301, USA.
 */

#ifndef __GDA_SQLITE_META_H__
#define __GDA_SQLITE_META_H__

#include <libgda/gda-server-provider.h>

G_BEGIN_DECLS

void     _gda_sqlite_provider_meta_init    (GdaServerProvider *provider);

/* _information_schema_catalog_name */
gboolean _gda_sqlite_meta__info            (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);

/* _builtin_data_types */
gboolean _gda_sqlite_meta__btypes          (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);

/* _udt */
gboolean _gda_sqlite_meta__udt             (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_udt              (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *udt_catalog, const GValue *udt_schema);

/* _udt_columns */
gboolean _gda_sqlite_meta__udt_cols        (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_udt_cols         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);

/* _enums */
gboolean _gda_sqlite_meta__enums           (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_enums            (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);

/* _domains */
gboolean _gda_sqlite_meta__domains         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_domains          (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *domain_catalog, const GValue *domain_schema);

/* _domain_constraints */
gboolean _gda_sqlite_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_constraints_dom  (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *domain_catalog, const GValue *domain_schema, 
					    const GValue *domain_name);

/* _element_types */
gboolean _gda_sqlite_meta__el_types        (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_el_types         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *specific_name);

/* _collations */
gboolean _gda_sqlite_meta__collations      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_collations       (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *collation_catalog, const GValue *collation_schema, 
					    const GValue *collation_name_n);

/* _character_sets */
gboolean _gda_sqlite_meta__character_sets  (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_character_sets   (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *chset_catalog, const GValue *chset_schema, 
					    const GValue *chset_name_n);

/* _schemata */
gboolean _gda_sqlite_meta__schemata        (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_schemata         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error, 
					    const GValue *catalog_name, const GValue *schema_name_n);

/* _tables or _views */
gboolean _gda_sqlite_meta__tables_views    (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_tables_views     (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name_n);

/* _columns */
gboolean _gda_sqlite_meta__columns         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_columns          (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name);

/* _view_column_usage */
gboolean _gda_sqlite_meta__view_cols       (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_view_cols        (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *view_catalog, const GValue *view_schema, 
					    const GValue *view_name);

/* _table_constraints */
gboolean _gda_sqlite_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_constraints_tab  (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error, 
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name, const GValue *constraint_name_n);

/* _referential_constraints */
gboolean _gda_sqlite_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_constraints_ref  (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, const GValue *table_name, 
					    const GValue *constraint_name);

/* _key_column_usage */
gboolean _gda_sqlite_meta__key_columns     (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_key_columns      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name, const GValue *constraint_name);

/* _check_column_usage */
gboolean _gda_sqlite_meta__check_columns   (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_check_columns    (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name, const GValue *constraint_name);

/* _triggers */
gboolean _gda_sqlite_meta__triggers        (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_triggers         (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, 
					    const GValue *table_name);

/* _routines */
gboolean _gda_sqlite_meta__routines       (GdaServerProvider *prov, GdaConnection *cnc, 
					   GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_routines        (GdaServerProvider *prov, GdaConnection *cnc, 
					   GdaMetaStore *store, GdaMetaContext *context, GError **error,
					   const GValue *routine_catalog, const GValue *routine_schema, 
					   const GValue *routine_name_n);

/* _routine_columns */
gboolean _gda_sqlite_meta__routine_col     (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_routine_col      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *rout_catalog, const GValue *rout_schema, 
					    const GValue *rout_name);

/* _parameters */
gboolean _gda_sqlite_meta__routine_par     (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_routine_par      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *rout_catalog, const GValue *rout_schema, 
					    const GValue *rout_name);

/* _table_indexes */
gboolean _gda_sqlite_meta__indexes_tab     (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_indexes_tab      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
					    const GValue *index_name_n);

/* _index_column_usage */
gboolean _gda_sqlite_meta__index_cols      (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error);
gboolean _gda_sqlite_meta_index_cols       (GdaServerProvider *prov, GdaConnection *cnc, 
					    GdaMetaStore *store, GdaMetaContext *context, GError **error,
					    const GValue *table_catalog, const GValue *table_schema,
					    const GValue *table_name, const GValue *index_name);

G_END_DECLS

#endif