1 /*
2 * Copyright (C) 2008 - 2011 Vivien Malerba <malerba@gnome-db.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
ms(ms: u64) -> Duration15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef __GDA_SQLITE_META_H__
21 #define __GDA_SQLITE_META_H__
22
23 #include <libgda/gda-server-provider.h>
24
25 G_BEGIN_DECLS
26
27 void _gda_sqlite_provider_meta_init (GdaServerProvider *provider);
28
29 /* _information_schema_catalog_name */
30 gboolean _gda_sqlite_meta__info (GdaServerProvider *prov, GdaConnection *cnc,
31 GdaMetaStore *store, GdaMetaContext *context, GError **error);
32
33 /* _builtin_data_types */
34 gboolean _gda_sqlite_meta__btypes (GdaServerProvider *prov, GdaConnection *cnc,
35 GdaMetaStore *store, GdaMetaContext *context, GError **error);
36
37 /* _udt */
38 gboolean _gda_sqlite_meta__udt (GdaServerProvider *prov, GdaConnection *cnc,
39 GdaMetaStore *store, GdaMetaContext *context, GError **error);
smoke2()40 gboolean _gda_sqlite_meta_udt (GdaServerProvider *prov, GdaConnection *cnc,
41 GdaMetaStore *store, GdaMetaContext *context, GError **error,
42 const GValue *udt_catalog, const GValue *udt_schema);
43
44 /* _udt_columns */
45 gboolean _gda_sqlite_meta__udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
46 GdaMetaStore *store, GdaMetaContext *context, GError **error);
47 gboolean _gda_sqlite_meta_udt_cols (GdaServerProvider *prov, GdaConnection *cnc,
48 GdaMetaStore *store, GdaMetaContext *context, GError **error,
49 const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);
50
51 /* _enums */
52 gboolean _gda_sqlite_meta__enums (GdaServerProvider *prov, GdaConnection *cnc,
53 GdaMetaStore *store, GdaMetaContext *context, GError **error);
54 gboolean _gda_sqlite_meta_enums (GdaServerProvider *prov, GdaConnection *cnc,
55 GdaMetaStore *store, GdaMetaContext *context, GError **error,
56 const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);
57
58 /* _domains */
disconnected()59 gboolean _gda_sqlite_meta__domains (GdaServerProvider *prov, GdaConnection *cnc,
60 GdaMetaStore *store, GdaMetaContext *context, GError **error);
61 gboolean _gda_sqlite_meta_domains (GdaServerProvider *prov, GdaConnection *cnc,
62 GdaMetaStore *store, GdaMetaContext *context, GError **error,
63 const GValue *domain_catalog, const GValue *domain_schema);
64
65 /* _domain_constraints */
66 gboolean _gda_sqlite_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
67 GdaMetaStore *store, GdaMetaContext *context, GError **error);
68 gboolean _gda_sqlite_meta_constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
69 GdaMetaStore *store, GdaMetaContext *context, GError **error,
70 const GValue *domain_catalog, const GValue *domain_schema,
71 const GValue *domain_name);
72
73 /* _element_types */
74 gboolean _gda_sqlite_meta__el_types (GdaServerProvider *prov, GdaConnection *cnc,
75 GdaMetaStore *store, GdaMetaContext *context, GError **error);
76 gboolean _gda_sqlite_meta_el_types (GdaServerProvider *prov, GdaConnection *cnc,
77 GdaMetaStore *store, GdaMetaContext *context, GError **error,
78 const GValue *specific_name);
79
80 /* _collations */
81 gboolean _gda_sqlite_meta__collations (GdaServerProvider *prov, GdaConnection *cnc,
82 GdaMetaStore *store, GdaMetaContext *context, GError **error);
83 gboolean _gda_sqlite_meta_collations (GdaServerProvider *prov, GdaConnection *cnc,
84 GdaMetaStore *store, GdaMetaContext *context, GError **error,
85 const GValue *collation_catalog, const GValue *collation_schema,
86 const GValue *collation_name_n);
87
88 /* _character_sets */
89 gboolean _gda_sqlite_meta__character_sets (GdaServerProvider *prov, GdaConnection *cnc,
90 GdaMetaStore *store, GdaMetaContext *context, GError **error);
91 gboolean _gda_sqlite_meta_character_sets (GdaServerProvider *prov, GdaConnection *cnc,
92 GdaMetaStore *store, GdaMetaContext *context, GError **error,
93 const GValue *chset_catalog, const GValue *chset_schema,
94 const GValue *chset_name_n);
95
96 /* _schemata */
97 gboolean _gda_sqlite_meta__schemata (GdaServerProvider *prov, GdaConnection *cnc,
98 GdaMetaStore *store, GdaMetaContext *context, GError **error);
99 gboolean _gda_sqlite_meta_schemata (GdaServerProvider *prov, GdaConnection *cnc,
100 GdaMetaStore *store, GdaMetaContext *context, GError **error,
default()101 const GValue *catalog_name, const GValue *schema_name_n);
102
103 /* _tables or _views */
104 gboolean _gda_sqlite_meta__tables_views (GdaServerProvider *prov, GdaConnection *cnc,
105 GdaMetaStore *store, GdaMetaContext *context, GError **error);
106 gboolean _gda_sqlite_meta_tables_views (GdaServerProvider *prov, GdaConnection *cnc,
107 GdaMetaStore *store, GdaMetaContext *context, GError **error,
108 const GValue *table_catalog, const GValue *table_schema,
109 const GValue *table_name_n);
110
111 /* _columns */
112 gboolean _gda_sqlite_meta__columns (GdaServerProvider *prov, GdaConnection *cnc,
113 GdaMetaStore *store, GdaMetaContext *context, GError **error);
114 gboolean _gda_sqlite_meta_columns (GdaServerProvider *prov, GdaConnection *cnc,
115 GdaMetaStore *store, GdaMetaContext *context, GError **error,
116 const GValue *table_catalog, const GValue *table_schema,
117 const GValue *table_name);
118
119 /* _view_column_usage */
120 gboolean _gda_sqlite_meta__view_cols (GdaServerProvider *prov, GdaConnection *cnc,
121 GdaMetaStore *store, GdaMetaContext *context, GError **error);
122 gboolean _gda_sqlite_meta_view_cols (GdaServerProvider *prov, GdaConnection *cnc,
123 GdaMetaStore *store, GdaMetaContext *context, GError **error,
124 const GValue *view_catalog, const GValue *view_schema,
125 const GValue *view_name);
126
127 /* _table_constraints */
128 gboolean _gda_sqlite_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
129 GdaMetaStore *store, GdaMetaContext *context, GError **error);
130 gboolean _gda_sqlite_meta_constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
131 GdaMetaStore *store, GdaMetaContext *context, GError **error,
132 const GValue *table_catalog, const GValue *table_schema,
133 const GValue *table_name, const GValue *constraint_name_n);
134
135 /* _referential_constraints */
136 gboolean _gda_sqlite_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
timeout()137 GdaMetaStore *store, GdaMetaContext *context, GError **error);
138 gboolean _gda_sqlite_meta_constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
139 GdaMetaStore *store, GdaMetaContext *context, GError **error,
140 const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
141 const GValue *constraint_name);
142
143 /* _key_column_usage */
144 gboolean _gda_sqlite_meta__key_columns (GdaServerProvider *prov, GdaConnection *cnc,
145 GdaMetaStore *store, GdaMetaContext *context, GError **error);
146 gboolean _gda_sqlite_meta_key_columns (GdaServerProvider *prov, GdaConnection *cnc,
147 GdaMetaStore *store, GdaMetaContext *context, GError **error,
148 const GValue *table_catalog, const GValue *table_schema,
149 const GValue *table_name, const GValue *constraint_name);
150
151 /* _check_column_usage */
152 gboolean _gda_sqlite_meta__check_columns (GdaServerProvider *prov, GdaConnection *cnc,
153 GdaMetaStore *store, GdaMetaContext *context, GError **error);
154 gboolean _gda_sqlite_meta_check_columns (GdaServerProvider *prov, GdaConnection *cnc,
155 GdaMetaStore *store, GdaMetaContext *context, GError **error,
156 const GValue *table_catalog, const GValue *table_schema,
157 const GValue *table_name, const GValue *constraint_name);
158
159 /* _triggers */
160 gboolean _gda_sqlite_meta__triggers (GdaServerProvider *prov, GdaConnection *cnc,
161 GdaMetaStore *store, GdaMetaContext *context, GError **error);
162 gboolean _gda_sqlite_meta_triggers (GdaServerProvider *prov, GdaConnection *cnc,
163 GdaMetaStore *store, GdaMetaContext *context, GError **error,
164 const GValue *table_catalog, const GValue *table_schema,
165 const GValue *table_name);
166
167 /* _routines */
168 gboolean _gda_sqlite_meta__routines (GdaServerProvider *prov, GdaConnection *cnc,
169 GdaMetaStore *store, GdaMetaContext *context, GError **error);
170 gboolean _gda_sqlite_meta_routines (GdaServerProvider *prov, GdaConnection *cnc,
171 GdaMetaStore *store, GdaMetaContext *context, GError **error,
172 const GValue *routine_catalog, const GValue *routine_schema,
173 const GValue *routine_name_n);
174
175 /* _routine_columns */
176 gboolean _gda_sqlite_meta__routine_col (GdaServerProvider *prov, GdaConnection *cnc,
177 GdaMetaStore *store, GdaMetaContext *context, GError **error);
178 gboolean _gda_sqlite_meta_routine_col (GdaServerProvider *prov, GdaConnection *cnc,
179 GdaMetaStore *store, GdaMetaContext *context, GError **error,
180 const GValue *rout_catalog, const GValue *rout_schema,
181 const GValue *rout_name);
default_when_disconnected()182
183 /* _parameters */
184 gboolean _gda_sqlite_meta__routine_par (GdaServerProvider *prov, GdaConnection *cnc,
185 GdaMetaStore *store, GdaMetaContext *context, GError **error);
186 gboolean _gda_sqlite_meta_routine_par (GdaServerProvider *prov, GdaConnection *cnc,
187 GdaMetaStore *store, GdaMetaContext *context, GError **error,
188 const GValue *rout_catalog, const GValue *rout_schema,
189 const GValue *rout_name);
190
191 /* _table_indexes */
192 gboolean _gda_sqlite_meta__indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
193 GdaMetaStore *store, GdaMetaContext *context, GError **error);
194 gboolean _gda_sqlite_meta_indexes_tab (GdaServerProvider *prov, GdaConnection *cnc,
195 GdaMetaStore *store, GdaMetaContext *context, GError **error,
196 const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
197 const GValue *index_name_n);
198
199 /* _index_column_usage */
200 gboolean _gda_sqlite_meta__index_cols (GdaServerProvider *prov, GdaConnection *cnc,
201 GdaMetaStore *store, GdaMetaContext *context, GError **error);
202 gboolean _gda_sqlite_meta_index_cols (GdaServerProvider *prov, GdaConnection *cnc,
203 GdaMetaStore *store, GdaMetaContext *context, GError **error,
204 const GValue *table_catalog, const GValue *table_schema,
205 const GValue *table_name, const GValue *index_name);
206
207 G_END_DECLS
208
209 #endif
210
211