1 /*
2  * Copyright (C) YEAR The GNOME Foundation.
3  *
4  * AUTHORS:
5  *      TO_ADD: your name and email
6  *      Vivien Malerba <malerba@gnome-db.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22 
23 #ifndef __GDA_CAPI_META_H__
24 #define __GDA_CAPI_META_H__
25 
26 #include <libgda/gda-server-provider.h>
27 
28 G_BEGIN_DECLS
29 
30 void     _gda_capi_provider_meta_init    (GdaServerProvider *provider);
31 
32 /* _information_schema_catalog_name */
33 gboolean _gda_capi_meta__info            (GdaServerProvider *prov, GdaConnection *cnc,
34 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
35 
36 /* _builtin_data_types */
37 gboolean _gda_capi_meta__btypes          (GdaServerProvider *prov, GdaConnection *cnc,
38 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
39 
40 /* _udt */
41 gboolean _gda_capi_meta__udt             (GdaServerProvider *prov, GdaConnection *cnc,
42 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
43 gboolean _gda_capi_meta_udt              (GdaServerProvider *prov, GdaConnection *cnc,
44 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
45 					  const GValue *udt_catalog, const GValue *udt_schema);
46 
47 /* _udt_columns */
48 gboolean _gda_capi_meta__udt_cols        (GdaServerProvider *prov, GdaConnection *cnc,
49 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
50 gboolean _gda_capi_meta_udt_cols         (GdaServerProvider *prov, GdaConnection *cnc,
51 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
52 					  const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);
53 
54 /* _enums */
55 gboolean _gda_capi_meta__enums           (GdaServerProvider *prov, GdaConnection *cnc,
56 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
57 gboolean _gda_capi_meta_enums            (GdaServerProvider *prov, GdaConnection *cnc,
58 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
59 					  const GValue *udt_catalog, const GValue *udt_schema, const GValue *udt_name);
60 
61 /* _domains */
62 gboolean _gda_capi_meta__domains         (GdaServerProvider *prov, GdaConnection *cnc,
63 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
64 gboolean _gda_capi_meta_domains          (GdaServerProvider *prov, GdaConnection *cnc,
65 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
66 					  const GValue *domain_catalog, const GValue *domain_schema);
67 
68 /* _domain_constraints */
69 gboolean _gda_capi_meta__constraints_dom (GdaServerProvider *prov, GdaConnection *cnc,
70 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
71 gboolean _gda_capi_meta_constraints_dom  (GdaServerProvider *prov, GdaConnection *cnc,
72 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
73 					  const GValue *domain_catalog, const GValue *domain_schema,
74 					  const GValue *domain_name);
75 
76 /* _element_types */
77 gboolean _gda_capi_meta__el_types        (GdaServerProvider *prov, GdaConnection *cnc,
78 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
79 gboolean _gda_capi_meta_el_types         (GdaServerProvider *prov, GdaConnection *cnc,
80 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
81 					  const GValue *specific_name);
82 
83 /* _collations */
84 gboolean _gda_capi_meta__collations      (GdaServerProvider *prov, GdaConnection *cnc,
85 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
86 gboolean _gda_capi_meta_collations       (GdaServerProvider *prov, GdaConnection *cnc,
87 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
88 					  const GValue *collation_catalog, const GValue *collation_schema,
89 					  const GValue *collation_name_n);
90 
91 /* _character_sets */
92 gboolean _gda_capi_meta__character_sets  (GdaServerProvider *prov, GdaConnection *cnc,
93 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
94 gboolean _gda_capi_meta_character_sets   (GdaServerProvider *prov, GdaConnection *cnc,
95 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
96 					  const GValue *chset_catalog, const GValue *chset_schema,
97 					  const GValue *chset_name_n);
98 
99 /* _schemata */
100 gboolean _gda_capi_meta__schemata        (GdaServerProvider *prov, GdaConnection *cnc,
101 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
102 gboolean _gda_capi_meta_schemata         (GdaServerProvider *prov, GdaConnection *cnc,
103 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
104 					  const GValue *catalog_name, const GValue *schema_name_n);
105 
106 /* _tables or _views */
107 gboolean _gda_capi_meta__tables_views    (GdaServerProvider *prov, GdaConnection *cnc,
108 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
109 gboolean _gda_capi_meta_tables_views     (GdaServerProvider *prov, GdaConnection *cnc,
110 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
111 					  const GValue *table_catalog, const GValue *table_schema,
112 					  const GValue *table_name_n);
113 
114 /* _columns */
115 gboolean _gda_capi_meta__columns         (GdaServerProvider *prov, GdaConnection *cnc,
116 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
117 gboolean _gda_capi_meta_columns          (GdaServerProvider *prov, GdaConnection *cnc,
118 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
119 					  const GValue *table_catalog, const GValue *table_schema,
120 					  const GValue *table_name);
121 
122 /* _view_column_usage */
123 gboolean _gda_capi_meta__view_cols       (GdaServerProvider *prov, GdaConnection *cnc,
124 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
125 gboolean _gda_capi_meta_view_cols        (GdaServerProvider *prov, GdaConnection *cnc,
126 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
127 					  const GValue *view_catalog, const GValue *view_schema,
128 					  const GValue *view_name);
129 
130 /* _table_constraints */
131 gboolean _gda_capi_meta__constraints_tab (GdaServerProvider *prov, GdaConnection *cnc,
132 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
133 gboolean _gda_capi_meta_constraints_tab  (GdaServerProvider *prov, GdaConnection *cnc,
134 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
135 					  const GValue *table_catalog, const GValue *table_schema,
136 					  const GValue *table_name, const GValue *constraint_name_n);
137 
138 /* _referential_constraints */
139 gboolean _gda_capi_meta__constraints_ref (GdaServerProvider *prov, GdaConnection *cnc,
140 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
141 gboolean _gda_capi_meta_constraints_ref  (GdaServerProvider *prov, GdaConnection *cnc,
142 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
143 					  const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
144 					  const GValue *constraint_name);
145 
146 /* _key_column_usage */
147 gboolean _gda_capi_meta__key_columns     (GdaServerProvider *prov, GdaConnection *cnc,
148 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
149 gboolean _gda_capi_meta_key_columns      (GdaServerProvider *prov, GdaConnection *cnc,
150 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
151 					  const GValue *table_catalog, const GValue *table_schema,
152 					  const GValue *table_name, const GValue *constraint_name);
153 
154 /* _check_column_usage */
155 gboolean _gda_capi_meta__check_columns   (GdaServerProvider *prov, GdaConnection *cnc,
156 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
157 gboolean _gda_capi_meta_check_columns    (GdaServerProvider *prov, GdaConnection *cnc,
158 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
159 					  const GValue *table_catalog, const GValue *table_schema,
160 					  const GValue *table_name, const GValue *constraint_name);
161 
162 /* _triggers */
163 gboolean _gda_capi_meta__triggers        (GdaServerProvider *prov, GdaConnection *cnc,
164 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
165 gboolean _gda_capi_meta_triggers         (GdaServerProvider *prov, GdaConnection *cnc,
166 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
167 					  const GValue *table_catalog, const GValue *table_schema,
168 					  const GValue *table_name);
169 
170 /* _routines */
171 gboolean _gda_capi_meta__routines       (GdaServerProvider *prov, GdaConnection *cnc,
172 					 GdaMetaStore *store, GdaMetaContext *context, GError **error);
173 gboolean _gda_capi_meta_routines        (GdaServerProvider *prov, GdaConnection *cnc,
174 					 GdaMetaStore *store, GdaMetaContext *context, GError **error,
175 					 const GValue *routine_catalog, const GValue *routine_schema,
176 					 const GValue *routine_name_n);
177 
178 /* _routine_columns */
179 gboolean _gda_capi_meta__routine_col     (GdaServerProvider *prov, GdaConnection *cnc,
180 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
181 gboolean _gda_capi_meta_routine_col      (GdaServerProvider *prov, GdaConnection *cnc,
182 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
183 					  const GValue *rout_catalog, const GValue *rout_schema,
184 					  const GValue *rout_name);
185 
186 /* _parameters */
187 gboolean _gda_capi_meta__routine_par     (GdaServerProvider *prov, GdaConnection *cnc,
188 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
189 gboolean _gda_capi_meta_routine_par      (GdaServerProvider *prov, GdaConnection *cnc,
190 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
191 					  const GValue *rout_catalog, const GValue *rout_schema,
192 					  const GValue *rout_name);
193 
194 /* _table_indexes */
195 gboolean _gda_capi_meta__indexes_tab     (GdaServerProvider *prov, GdaConnection *cnc,
196 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
197 gboolean _gda_capi_meta_indexes_tab      (GdaServerProvider *prov, GdaConnection *cnc,
198 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
199 					  const GValue *table_catalog, const GValue *table_schema, const GValue *table_name,
200 					  const GValue *index_name_n);
201 
202 /* _index_column_usage */
203 gboolean _gda_capi_meta__index_cols      (GdaServerProvider *prov, GdaConnection *cnc,
204 					  GdaMetaStore *store, GdaMetaContext *context, GError **error);
205 gboolean _gda_capi_meta_index_cols       (GdaServerProvider *prov, GdaConnection *cnc,
206 					  GdaMetaStore *store, GdaMetaContext *context, GError **error,
207 					  const GValue *table_catalog, const GValue *table_schema,
208 					  const GValue *table_name, const GValue *index_name);
209 G_END_DECLS
210 
211 #endif
212 
213