codegen: Add get_field_cvalue and load_field
[vala-lang.git] / vapi / libgda-4.0.vapi
blobe0068d2388b23efabdd337a921522e041a4ca102
1 /* libgda-4.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gda", lower_case_cprefix = "gda_")]
4 namespace Gda {
5         [Compact]
6         [CCode (copy_function = "gda_attributes_manager_copy", cheader_filename = "libgda/libgda.h")]
7         public class AttributesManager {
8                 [CCode (has_construct_function = false)]
9                 public AttributesManager (bool for_objects, Gda.AttributesManagerSignal signal_func, void* signal_data);
10                 public void clear (void* ptr);
11                 public void copy (void* from, Gda.AttributesManager to_mgr, void* to);
12                 public void @foreach (void* ptr, Gda.AttributesManagerFunc func, void* data);
13                 public GLib.Value @get (void* ptr, string att_name);
14                 public void @set (void* ptr, string att_name, GLib.Value value);
15                 public void set_full (void* ptr, string att_name, GLib.Value value, GLib.DestroyNotify destroy);
16         }
17         [CCode (cheader_filename = "libgda/libgda.h")]
18         public class Batch : GLib.Object {
19                 [CCode (has_construct_function = false)]
20                 public Batch ();
21                 public void add_statement (Gda.Statement stmt);
22                 public unowned Gda.Batch copy ();
23                 public static GLib.Quark error_quark ();
24                 public bool get_parameters (out unowned Gda.Set out_params) throws GLib.Error;
25                 public unowned GLib.SList<Gda.Statement> get_statements ();
26                 public void remove_statement (Gda.Statement stmt);
27                 public unowned string serialize ();
28                 public virtual signal void changed (GLib.Object changed_stmt);
29         }
30         [Compact]
31         [CCode (copy_function = "gda_binary_copy", type_id = "GDA_TYPE_BINARY", cheader_filename = "libgda/libgda.h")]
32         public class Binary {
33                 public long binary_length;
34                 [CCode (array_length = false)]
35                 public weak uchar[] data;
36                 public static void* copy (void* boxed);
37                 public unowned string to_string (uint maxlen);
38         }
39         [Compact]
40         [CCode (copy_function = "gda_blob_copy", type_id = "GDA_TYPE_BLOB", cheader_filename = "libgda/libgda.h")]
41         public class Blob {
42                 public weak Gda.Binary data;
43                 public weak Gda.BlobOp op;
44                 public static void* copy (void* boxed);
45                 public void set_op (Gda.BlobOp op);
46                 public unowned string to_string (uint maxlen);
47         }
48         [CCode (cheader_filename = "libgda/libgda.h")]
49         public class BlobOp : GLib.Object {
50                 [CCode (has_construct_function = false)]
51                 protected BlobOp ();
52                 public virtual long get_length ();
53                 public virtual long read (Gda.Blob blob, long offset, long size);
54                 public bool read_all (Gda.Blob blob);
55                 public virtual long write (Gda.Blob blob, long offset);
56                 public virtual bool write_all (Gda.Blob blob);
57         }
58         [CCode (cheader_filename = "libgda/libgda.h")]
59         public class Column : GLib.Object {
60                 [CCode (has_construct_function = false)]
61                 public Column ();
62                 public unowned Gda.Column copy ();
63                 public bool get_allow_null ();
64                 public GLib.Value get_attribute (string attribute);
65                 public bool get_auto_increment ();
66                 public unowned string get_dbms_type ();
67                 public GLib.Value get_default_value ();
68                 public unowned string get_description ();
69                 public GLib.Type get_g_type ();
70                 public unowned string get_name ();
71                 public int get_position ();
72                 public void set_allow_null (bool allow);
73                 public void set_attribute (string attribute, GLib.Value value, GLib.DestroyNotify destroy);
74                 public void set_auto_increment (bool is_auto);
75                 public void set_dbms_type (string dbms_type);
76                 public void set_default_value (GLib.Value default_value);
77                 public void set_description (string title);
78                 public void set_g_type (GLib.Type type);
79                 public void set_name (string name);
80                 public void set_position (int position);
81                 [NoAccessorMethod]
82                 public string id { owned get; set; }
83                 public virtual signal void g_type_changed (GLib.Type old_type, GLib.Type new_type);
84                 public virtual signal void name_changed (string old_name);
85         }
86         [CCode (cheader_filename = "libgda/libgda.h")]
87         public class Config : GLib.Object {
88                 [CCode (has_construct_function = false)]
89                 protected Config ();
90                 public static bool can_modify_system_config ();
91                 public static bool define_dsn (Gda.DsnInfo info) throws GLib.Error;
92                 public static bool dsn_needs_authentication (string dsn_name);
93                 public static GLib.Quark error_quark ();
94                 public static unowned Gda.Config @get ();
95                 public static Gda.DsnInfo get_dsn_info (string dsn_name);
96                 public static Gda.DsnInfo get_dsn_info_at_index (int index);
97                 public static int get_dsn_info_index (string dsn_name);
98                 public static int get_nb_dsn ();
99                 public static unowned Gda.ServerProvider get_provider (string provider_name) throws GLib.Error;
100                 public static unowned Gda.ProviderInfo get_provider_info (string provider_name);
101                 public static unowned Gda.DataModel list_dsn ();
102                 public static unowned Gda.DataModel list_providers ();
103                 public static bool remove_dsn (string dsn_name) throws GLib.Error;
104                 [NoAccessorMethod]
105                 public string system_filename { owned get; set; }
106                 [NoAccessorMethod]
107                 public string user_filename { owned get; set; }
108                 public virtual signal void dsn_added (void* new_dsn);
109                 public virtual signal void dsn_changed (void* dsn);
110                 public virtual signal void dsn_removed (void* old_dsn);
111                 public virtual signal void dsn_to_be_removed (void* old_dsn);
112         }
113         [CCode (cheader_filename = "libgda/libgda.h")]
114         public class Connection : GLib.Object, Gda.Lockable {
115                 [CCode (has_construct_function = false)]
116                 protected Connection ();
117                 public bool add_savepoint (string name) throws GLib.Error;
118                 public unowned GLib.SList<GLib.Object> batch_execute (Gda.Batch batch, Gda.Set @params, Gda.StatementModelUsage model_usage) throws GLib.Error;
119                 public bool begin_transaction (string name, Gda.TransactionIsolation level) throws GLib.Error;
120                 public void close ();
121                 public void close_no_warning ();
122                 public bool commit_transaction (string name) throws GLib.Error;
123                 public unowned Gda.ServerOperation create_operation (Gda.ServerOperationType type, Gda.Set options) throws GLib.Error;
124                 public unowned Gda.SqlParser create_parser ();
125                 public bool delete_savepoint (string name) throws GLib.Error;
126                 public static GLib.Quark error_quark ();
127                 public unowned string get_authentication ();
128                 public unowned string get_cnc_string ();
129                 public unowned string get_dsn ();
130                 public unowned GLib.List<Gda.ConnectionEvent> get_events ();
131                 public unowned Gda.MetaStore get_meta_store ();
132                 public unowned Gda.DataModel get_meta_store_data (Gda.ConnectionMetaType meta_type, int nb_filters) throws GLib.Error;
133                 public Gda.DataModel get_meta_store_data_v (Gda.ConnectionMetaType meta_type, GLib.List<Gda.Holder> filters) throws GLib.Error;
134                 public Gda.ConnectionOptions get_options ();
135                 public unowned Gda.ServerProvider get_provider ();
136                 public unowned string get_provider_name ();
137                 public unowned Gda.TransactionStatus get_transaction_status ();
138                 public bool is_opened ();
139                 public bool open () throws GLib.Error;
140                 public static unowned Gda.Connection open_from_dsn (string dsn, string? auth_string, Gda.ConnectionOptions options) throws GLib.Error;
141                 public static unowned Gda.Connection open_from_string (string provider_name, string? cnc_string, string? auth_string, Gda.ConnectionOptions options) throws GLib.Error;
142                 public bool perform_operation (Gda.ServerOperation op) throws GLib.Error;
143                 public unowned string quote_sql_identifier (string id);
144                 public bool rollback_savepoint (string name) throws GLib.Error;
145                 public bool rollback_transaction (string name) throws GLib.Error;
146                 public unowned GLib.Object statement_execute (Gda.Statement stmt, Gda.Set @params, Gda.StatementModelUsage model_usage, out unowned Gda.Set last_insert_row) throws GLib.Error;
147                 public int statement_execute_non_select (Gda.Statement stmt, Gda.Set? @params, out unowned Gda.Set? last_insert_row) throws GLib.Error;
148                 public unowned Gda.DataModel statement_execute_select (Gda.Statement stmt, Gda.Set @params) throws GLib.Error;
149                 public unowned Gda.DataModel statement_execute_select_full (Gda.Statement stmt, Gda.Set @params, Gda.StatementModelUsage model_usage, GLib.Type[] col_types) throws GLib.Error;
150                 public unowned Gda.DataModel statement_execute_select_fullv (Gda.Statement stmt, Gda.Set @params, Gda.StatementModelUsage model_usage) throws GLib.Error;
151                 public bool statement_prepare (Gda.Statement stmt) throws GLib.Error;
152                 public unowned string statement_to_sql (Gda.Statement stmt, Gda.Set @params, Gda.StatementSqlFlag flags, GLib.SList<Gda.Holder> params_used) throws GLib.Error;
153                 public static void string_split (string str, string out_cnc_params, string out_provider, string out_username, string out_password);
154                 public bool supports_feature (Gda.ConnectionFeature feature);
155                 public bool update_meta_store (Gda.MetaContext context) throws GLib.Error;
156                 public unowned string value_to_sql_string (GLib.Value from);
157                 [NoAccessorMethod]
158                 public string auth_string { owned get; set; }
159                 [NoAccessorMethod]
160                 public string cnc_string { owned get; set; }
161                 [NoAccessorMethod]
162                 public string dsn { owned get; set; }
163                 [NoAccessorMethod]
164                 public Gda.MetaStore meta_store { owned get; set; }
165                 [NoAccessorMethod]
166                 public Gda.ConnectionOptions options { get; set; }
167                 [NoAccessorMethod]
168                 public Gda.ServerProvider provider { owned get; set; }
169                 [NoAccessorMethod]
170                 public void* thread_owner { get; set; }
171                 public virtual signal void conn_closed ();
172                 public virtual signal void conn_opened ();
173                 public virtual signal void conn_to_close ();
174                 public virtual signal void dsn_changed ();
175                 public virtual signal void error (Gda.ConnectionEvent error);
176                 public virtual signal void transaction_status_changed ();
177         }
178         [CCode (cheader_filename = "libgda/libgda.h")]
179         public class ConnectionEvent : GLib.Object {
180                 [CCode (has_construct_function = false)]
181                 public ConnectionEvent (Gda.ConnectionEventType type);
182                 public long get_code ();
183                 public unowned string get_description ();
184                 public Gda.ConnectionEventType get_event_type ();
185                 public Gda.ConnectionEventCode get_gda_code ();
186                 public unowned string get_source ();
187                 public unowned string get_sqlstate ();
188                 public void set_code (long code);
189                 public void set_description (string description);
190                 public void set_event_type (Gda.ConnectionEventType type);
191                 public void set_gda_code (Gda.ConnectionEventCode code);
192                 public void set_source (string source);
193                 public void set_sqlstate (string sqlstate);
194                 [NoAccessorMethod]
195                 public int type { get; set; }
196         }
197         [CCode (cheader_filename = "libgda/libgda.h")]
198         public class DataAccessWrapper : GLib.Object, Gda.DataModel {
199                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
200                 public DataAccessWrapper (Gda.DataModel model);
201                 [NoAccessorMethod]
202                 public Gda.DataModel model { owned get; construct; }
203         }
204         [CCode (cheader_filename = "libgda/libgda.h")]
205         public class DataComparator : GLib.Object {
206                 [CCode (type = "GObject*", has_construct_function = false)]
207                 public DataComparator (Gda.DataModel old_model, Gda.DataModel new_model);
208                 public bool compute_diff () throws GLib.Error;
209                 public static GLib.Quark error_quark ();
210                 public unowned Gda.Diff get_diff (int pos);
211                 public int get_n_diffs ();
212                 public void set_key_columns (int col_numbers, int nb_cols);
213                 [NoAccessorMethod]
214                 public Gda.DataModel new_model { owned get; set; }
215                 [NoAccessorMethod]
216                 public Gda.DataModel old_model { owned get; set; }
217                 public virtual signal bool diff_computed (void* diff);
218         }
219         [CCode (cheader_filename = "libgda/libgda.h")]
220         public class DataModelArray : GLib.Object, Gda.DataModel {
221                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
222                 public DataModelArray (int cols);
223                 public void clear ();
224                 public static unowned Gda.DataModelArray copy_model (Gda.DataModel src) throws GLib.Error;
225                 public unowned Gda.Row get_row (int row) throws GLib.Error;
226                 public void set_n_columns (int cols);
227                 [CCode (sentinel = "", type = "GdaDataModel*", has_construct_function = false)]
228                 public DataModelArray.with_g_types (int cols, ...);
229                 [NoAccessorMethod]
230                 public uint n_columns { get; set; }
231                 [NoAccessorMethod]
232                 public bool read_only { get; set; }
233         }
234         [CCode (cheader_filename = "libgda/libgda.h")]
235         public class DataModelBdb : GLib.Object, Gda.DataModel {
236                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
237                 public DataModelBdb (string filename, string db_name);
238                 public void clean_errors ();
239                 [NoWrapper]
240                 public virtual unowned GLib.SList create_data_columns ();
241                 [NoWrapper]
242                 public virtual unowned GLib.SList create_key_columns ();
243                 [NoWrapper]
244                 public virtual GLib.Value get_data_part (void* data, int length, int part);
245                 public unowned GLib.SList<GLib.Error> get_errors ();
246                 [NoWrapper]
247                 public virtual GLib.Value get_key_part (void* data, int length, int part);
248                 [NoWrapper]
249                 public virtual bool update_data_part (void* data, int length, int part, GLib.Value value) throws GLib.Error;
250                 [NoWrapper]
251                 public virtual bool update_key_part (void* data, int length, int part, GLib.Value value) throws GLib.Error;
252                 [NoAccessorMethod]
253                 public string db_name { owned get; construct; }
254                 [NoAccessorMethod]
255                 public string filename { owned get; construct; }
256         }
257         [CCode (cheader_filename = "libgda/libgda.h")]
258         public class DataModelDir : GLib.Object, Gda.DataModel {
259                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
260                 public DataModelDir (string basedir);
261                 public void clean_errors ();
262                 public unowned GLib.SList<GLib.Error> get_errors ();
263                 [NoAccessorMethod]
264                 public string basedir { owned get; construct; }
265         }
266         [CCode (cheader_filename = "libgda/libgda.h")]
267         public class DataModelImport : GLib.Object, Gda.DataModel {
268                 [CCode (has_construct_function = false)]
269                 protected DataModelImport ();
270                 public void clean_errors ();
271                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
272                 public DataModelImport.file (string filename, bool random_access, Gda.Set options);
273                 public static bool from_file (Gda.DataModel model, string file, GLib.HashTable cols_trans, Gda.Set options) throws GLib.Error;
274                 public static bool from_model (Gda.DataModel to, Gda.DataModel from, bool overwrite, GLib.HashTable cols_trans) throws GLib.Error;
275                 public static bool from_string (Gda.DataModel model, string str, GLib.HashTable cols_trans, Gda.Set options) throws GLib.Error;
276                 [CCode (cname = "gda_data_model_import_new_xml_node", type = "GdaDataModel*", has_construct_function = false)]
277                 public DataModelImport.from_xml_node (Xml.Node node);
278                 public unowned GLib.SList<GLib.Error> get_errors ();
279                 [CCode (type = "GdaDataModel*", has_construct_function = false)]
280                 public DataModelImport.mem (string data, bool random_access, Gda.Set options);
281                 [NoAccessorMethod]
282                 public string data_string { owned get; construct; }
283                 [NoAccessorMethod]
284                 public string filename { owned get; construct; }
285                 [NoAccessorMethod]
286                 public Gda.Set options { owned get; construct; }
287                 [NoAccessorMethod]
288                 public bool random_access { get; construct; }
289                 [NoAccessorMethod]
290                 public void* xml_node { get; construct; }
291         }
292         [CCode (cheader_filename = "libgda/libgda.h")]
293         public class DataModelIter : Gda.Set {
294                 [CCode (has_construct_function = false)]
295                 protected DataModelIter ();
296                 public static GLib.Quark error_quark ();
297                 public unowned Gda.Holder get_holder_for_field (int col);
298                 public int get_row ();
299                 public unowned GLib.Value? get_value_at (int col);
300                 public unowned GLib.Value? get_value_for_field (string field_name);
301                 public void invalidate_contents ();
302                 public bool is_valid ();
303                 public bool move_next ();
304                 public static bool move_next_default (Gda.DataModel model, Gda.DataModelIter iter);
305                 public bool move_prev ();
306                 public static bool move_prev_default (Gda.DataModel model, Gda.DataModelIter iter);
307                 public bool move_to_row (int row);
308                 public static bool move_to_row_default (Gda.DataModel model, Gda.DataModelIter iter, int row);
309                 public bool set_value_at (int col, GLib.Value value) throws GLib.Error;
310                 [NoAccessorMethod]
311                 public int current_row { get; set; }
312                 [NoAccessorMethod]
313                 public Gda.DataModel data_model { owned get; construct; }
314                 [NoAccessorMethod]
315                 public Gda.DataModel forced_model { owned get; set; }
316                 [NoAccessorMethod]
317                 public bool update_model { get; set; }
318                 public virtual signal void end_of_data ();
319                 public virtual signal void row_changed (int row);
320         }
321         [CCode (cheader_filename = "libgda/libgda.h")]
322         public class DataProxy : GLib.Object, Gda.DataModel {
323                 [CCode (type = "GObject*", has_construct_function = false)]
324                 public DataProxy (Gda.DataModel model);
325                 public void alter_value_attributes (int proxy_row, int col, Gda.ValueAttribute alter_flags);
326                 public bool apply_all_changes () throws GLib.Error;
327                 public bool apply_row_changes (int proxy_row) throws GLib.Error;
328                 public bool cancel_all_changes ();
329                 public void cancel_row_changes (int proxy_row, int col);
330                 public void @delete (int proxy_row);
331                 public static GLib.Quark error_quark ();
332                 public unowned string get_filter_expr ();
333                 public int get_filtered_n_rows ();
334                 public int get_n_modified_rows ();
335                 public int get_n_new_rows ();
336                 public unowned Gda.DataModel get_proxied_model ();
337                 public int get_proxied_model_n_cols ();
338                 public int get_proxied_model_n_rows ();
339                 public int get_proxied_model_row (int proxy_row);
340                 public int get_sample_end ();
341                 public int get_sample_size ();
342                 public int get_sample_start ();
343                 public Gda.ValueAttribute get_value_attributes (int proxy_row, int col);
344                 public unowned GLib.SList<GLib.Value> get_values (int proxy_row, int cols_index, int n_cols);
345                 public bool has_changed ();
346                 public bool is_read_only ();
347                 public bool row_has_changed (int proxy_row);
348                 public bool row_is_deleted (int proxy_row);
349                 public bool row_is_inserted (int proxy_row);
350                 public bool set_filter_expr (string filter_expr) throws GLib.Error;
351                 public bool set_ordering_column (int col) throws GLib.Error;
352                 public void set_sample_size (int sample_size);
353                 public void set_sample_start (int sample_start);
354                 public void undelete (int proxy_row);
355                 [NoAccessorMethod]
356                 public bool defer_sync { get; set; }
357                 [NoAccessorMethod]
358                 public Gda.DataModel model { owned get; set construct; }
359                 [NoAccessorMethod]
360                 public bool prepend_null_entry { get; set; }
361                 public int sample_size { get; set construct; }
362                 public virtual signal void filter_changed ();
363                 public virtual signal void row_changes_applied (int row, int proxied_row);
364                 public virtual signal void row_delete_changed (int row, bool to_be_deleted);
365                 public virtual signal void sample_changed (int sample_start, int sample_end);
366                 public virtual signal void sample_size_changed (int sample_size);
367                 public virtual signal unowned GLib.Error validate_row_changes (int row, int proxied_row);
368         }
369         [CCode (cheader_filename = "libgda/libgda.h")]
370         public class DataSelect : GLib.Object, Gda.DataModel {
371                 public int advertized_nrows;
372                 public int nb_stored_rows;
373                 public weak Gda.PStmt prep_stmt;
374                 [CCode (has_construct_function = false)]
375                 protected DataSelect ();
376                 public bool compute_columns_attributes () throws GLib.Error;
377                 public bool compute_modification_statements () throws GLib.Error;
378                 public bool compute_row_selection_condition () throws GLib.Error;
379                 public static GLib.Quark error_quark ();
380                 [NoWrapper]
381                 public virtual bool fetch_at (out unowned Gda.Row prow, int rownum) throws GLib.Error;
382                 [NoWrapper]
383                 public virtual int fetch_nb_rows ();
384                 [NoWrapper]
385                 public virtual bool fetch_next (out unowned Gda.Row prow, int rownum) throws GLib.Error;
386                 [NoWrapper]
387                 public virtual bool fetch_prev (out unowned Gda.Row prow, int rownum) throws GLib.Error;
388                 [NoWrapper]
389                 public virtual bool fetch_random (out unowned Gda.Row prow, int rownum) throws GLib.Error;
390                 public unowned Gda.Connection get_connection ();
391                 public unowned Gda.Row get_stored_row (int rownum);
392                 public bool set_modification_statement (Gda.Statement mod_stmt) throws GLib.Error;
393                 public bool set_modification_statement_sql (string sql) throws GLib.Error;
394                 public bool set_row_selection_condition (Gda.SqlExpr expr) throws GLib.Error;
395                 public bool set_row_selection_condition_sql (string sql_where) throws GLib.Error;
396                 [NoWrapper]
397                 public virtual bool store_all () throws GLib.Error;
398                 public void take_row (Gda.Row row, int rownum);
399                 [NoAccessorMethod]
400                 public bool auto_reset { get; set; }
401                 public Gda.Connection connection { get; construct; }
402                 [NoAccessorMethod]
403                 public Gda.Statement delete_stmt { owned get; set; }
404                 [NoAccessorMethod]
405                 public Gda.Set exec_params { owned get; construct; }
406                 [NoAccessorMethod]
407                 public Gda.Statement insert_stmt { owned get; set; }
408                 [NoAccessorMethod]
409                 public uint model_usage { get; construct; }
410                 [NoAccessorMethod]
411                 public Gda.PStmt prepared_stmt { owned get; set; }
412                 [NoAccessorMethod]
413                 public Gda.Statement select_stmt { owned get; }
414                 [NoAccessorMethod]
415                 public bool store_all_rows { get; set; }
416                 [NoAccessorMethod]
417                 public Gda.Statement update_stmt { owned get; set; }
418         }
419         [Compact]
420         [CCode (cheader_filename = "libgda/libgda.h")]
421         public class Diff {
422                 public int new_row;
423                 public int old_row;
424                 public Gda.DiffType type;
425                 public weak GLib.HashTable values;
426         }
427         [Compact]
428         [CCode (copy_function = "gda_geometricpoint_copy", free_function = "gda_geometricpoint_free", type_id = "GDA_TYPE_GEOMETRIC_POINT", cheader_filename = "libgda/libgda.h")]
429         public class GeometricPoint {
430                 public double x;
431                 public double y;
432                 [CCode (cname = "gda_geometricpoint_copy")]
433                 public static void* copy (void* boxed);
434         }
435         [CCode (cheader_filename = "libgda/libgda.h")]
436         public class HandlerBin : GLib.Object, Gda.DataHandler {
437                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
438                 public HandlerBin ();
439         }
440         [Compact]
441         [CCode (cheader_filename = "libgda/libgda.h")]
442         public class HandlerBinPriv {
443         }
444         [CCode (cheader_filename = "libgda/libgda.h")]
445         public class HandlerBoolean : GLib.Object, Gda.DataHandler {
446                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
447                 public HandlerBoolean ();
448         }
449         [Compact]
450         [CCode (cheader_filename = "libgda/libgda.h")]
451         public class HandlerBooleanPriv {
452         }
453         [CCode (cheader_filename = "libgda/libgda.h")]
454         public class HandlerNumerical : GLib.Object, Gda.DataHandler {
455                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
456                 public HandlerNumerical ();
457         }
458         [Compact]
459         [CCode (cheader_filename = "libgda/libgda.h")]
460         public class HandlerNumericalPriv {
461         }
462         [CCode (cheader_filename = "libgda/libgda.h")]
463         public class HandlerString : GLib.Object, Gda.DataHandler {
464                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
465                 public HandlerString ();
466                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
467                 public HandlerString.with_provider (Gda.ServerProvider prov, Gda.Connection cnc);
468         }
469         [Compact]
470         [CCode (cheader_filename = "libgda/libgda.h")]
471         public class HandlerStringPriv {
472         }
473         [CCode (cheader_filename = "libgda/libgda.h")]
474         public class HandlerTime : GLib.Object, Gda.DataHandler {
475                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
476                 public HandlerTime ();
477                 public unowned string get_format (GLib.Type type);
478                 public unowned string get_no_locale_str_from_value (GLib.Value value);
479                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
480                 public HandlerTime.no_locale ();
481                 public void set_sql_spec (GLib.DateDMY first, GLib.DateDMY sec, GLib.DateDMY third, char separator, bool twodigits_years);
482         }
483         [Compact]
484         [CCode (cheader_filename = "libgda/libgda.h")]
485         public class HandlerTimePriv {
486         }
487         [CCode (cheader_filename = "libgda/libgda.h")]
488         public class HandlerType : GLib.Object, Gda.DataHandler {
489                 [CCode (type = "GdaDataHandler*", has_construct_function = false)]
490                 public HandlerType ();
491         }
492         [Compact]
493         [CCode (cheader_filename = "libgda/libgda.h")]
494         public class HandlerTypePriv {
495         }
496         [CCode (cheader_filename = "libgda/libgda.h")]
497         public class Holder : GLib.Object {
498                 [CCode (has_construct_function = false)]
499                 public Holder (GLib.Type type);
500                 [NoWrapper]
501                 public virtual void att_changed (string att_name, GLib.Value att_value);
502                 public unowned Gda.Holder copy ();
503                 public static GLib.Quark error_quark ();
504                 public void force_invalid ();
505                 public GLib.Value get_attribute (string attribute);
506                 public unowned Gda.Holder get_bind ();
507                 public GLib.Value get_default_value ();
508                 public GLib.Type get_g_type ();
509                 public unowned string get_id ();
510                 public bool get_not_null ();
511                 public unowned Gda.DataModel get_source_model (int col);
512                 public GLib.Value get_value ();
513                 public unowned string get_value_str (Gda.DataHandler dh);
514                 [CCode (has_construct_function = false)]
515                 public Holder.@inline (GLib.Type type, string id);
516                 public bool is_valid ();
517                 public void set_attribute (string attribute, GLib.Value value, GLib.DestroyNotify destroy);
518                 public bool set_bind (Gda.Holder bind_to) throws GLib.Error;
519                 public void set_default_value (GLib.Value value);
520                 public void set_not_null (bool not_null);
521                 public bool set_source_model (Gda.DataModel model, int col) throws GLib.Error;
522                 public bool set_value (GLib.Value value) throws GLib.Error;
523                 public bool set_value_str (Gda.DataHandler dh, string value) throws GLib.Error;
524                 public bool set_value_to_default ();
525                 public GLib.Value take_static_value (GLib.Value value, bool value_changed) throws GLib.Error;
526                 public bool take_value (GLib.Value value) throws GLib.Error;
527                 public bool value_is_default ();
528                 [NoAccessorMethod]
529                 public string description { owned get; set; }
530                 [NoAccessorMethod]
531                 public Gda.Holder full_bind { owned get; set; }
532                 [NoAccessorMethod]
533                 public GLib.Type g_type { get; set construct; }
534                 [NoAccessorMethod]
535                 public string id { owned get; set; }
536                 [NoAccessorMethod]
537                 public string name { owned get; set; }
538                 public bool not_null { get; set; }
539                 [NoAccessorMethod]
540                 public Gda.Holder simple_bind { owned get; set; }
541                 [NoAccessorMethod]
542                 public int source_column { get; set; }
543                 public Gda.DataModel source_model { get; set; }
544                 public virtual signal void attribute_changed (string p0, GLib.Value p1);
545                 public virtual signal void changed ();
546                 public virtual signal void source_changed ();
547                 public virtual signal unowned GLib.Error validate_change (GLib.Value new_value);
548         }
549         [Compact]
550         [CCode (cheader_filename = "libgda/libgda.h")]
551         public class MetaContext {
552                 public weak string column_names;
553                 public GLib.Value column_values;
554                 public int size;
555                 public weak string table_name;
556         }
557         [Compact]
558         [CCode (cheader_filename = "libgda/libgda.h")]
559         public class MetaDbObject {
560                 public weak GLib.SList depend_list;
561                 public void* extra;
562                 public weak string obj_catalog;
563                 public weak string obj_full_name;
564                 public weak string obj_name;
565                 public weak string obj_owner;
566                 public weak string obj_schema;
567                 public weak string obj_short_name;
568                 public Gda.MetaDbObjectType obj_type;
569                 public bool outdated;
570         }
571         [CCode (cheader_filename = "libgda/libgda.h")]
572         public class MetaStore : GLib.Object {
573                 [CCode (has_construct_function = false)]
574                 public MetaStore (string cnc_string);
575                 public unowned Gda.DataModel create_modify_data_model (string table_name);
576                 public static GLib.Quark error_quark ();
577                 public unowned Gda.DataModel extract (string select_sql) throws GLib.Error;
578                 public bool get_attribute_value (string att_name, string att_value) throws GLib.Error;
579                 public unowned Gda.Connection get_internal_connection ();
580                 public int get_version ();
581                 public bool modify (string table_name, Gda.DataModel new_data, string condition) throws GLib.Error;
582                 public bool modify_with_context (Gda.MetaContext context, Gda.DataModel new_data) throws GLib.Error;
583                 public bool schema_add_custom_object (string xml_description) throws GLib.Error;
584                 public unowned GLib.SList schema_get_all_tables ();
585                 public unowned GLib.SList schema_get_depend_tables (string table_name);
586                 public unowned Gda.MetaStruct schema_get_structure () throws GLib.Error;
587                 public bool schema_remove_custom_object (string obj_name) throws GLib.Error;
588                 public bool set_attribute_value (string att_name, string att_value) throws GLib.Error;
589                 public void set_reserved_keywords_func (Gda.SqlReservedKeywordsFunc func);
590                 public static unowned string sql_identifier_quote (string id, Gda.Connection cnc);
591                 [CCode (has_construct_function = false)]
592                 public MetaStore.with_file (string file_name);
593                 public string catalog { construct; }
594                 [NoAccessorMethod]
595                 public Gda.Connection cnc { owned get; construct; }
596                 public string cnc_string { construct; }
597                 public string schema { construct; }
598                 public virtual signal void meta_changed (GLib.SList<Gda.MetaStoreChange> changes);
599                 public virtual signal void meta_reset ();
600                 public virtual signal unowned GLib.Error suggest_update (Gda.MetaContext suggest);
601         }
602         [Compact]
603         [CCode (cheader_filename = "libgda/libgda.h")]
604         public class MetaStoreChange {
605                 public Gda.MetaStoreChangeType c_type;
606                 public weak GLib.HashTable keys;
607                 public weak string table_name;
608         }
609         [CCode (cheader_filename = "libgda/libgda.h")]
610         public class MetaStruct : GLib.Object {
611                 [CCode (has_construct_function = false)]
612                 public MetaStruct (Gda.MetaStore store, Gda.MetaStructFeature features);
613                 public unowned Gda.MetaDbObject complement (Gda.MetaDbObjectType type, GLib.Value catalog, GLib.Value schema, GLib.Value name) throws GLib.Error;
614                 public bool complement_all () throws GLib.Error;
615                 public bool complement_default () throws GLib.Error;
616                 public bool complement_depend (Gda.MetaDbObject dbo) throws GLib.Error;
617                 public bool complement_schema (GLib.Value catalog, GLib.Value schema) throws GLib.Error;
618                 public unowned string dump_as_graph (Gda.MetaGraphInfo info) throws GLib.Error;
619                 public static GLib.Quark error_quark ();
620                 public GLib.SList<Gda.MetaDbObject> get_all_db_objects ();
621                 public unowned Gda.MetaDbObject get_db_object (GLib.Value catalog, GLib.Value schema, GLib.Value name);
622                 public unowned Gda.MetaTableColumn get_table_column (Gda.MetaTable table, GLib.Value col_name);
623                 public bool sort_db_objects (Gda.MetaSortType sort_type) throws GLib.Error;
624                 [NoAccessorMethod]
625                 public uint features { get; construct; }
626                 [NoAccessorMethod]
627                 public Gda.MetaStore meta_store { owned get; construct; }
628         }
629         [Compact]
630         [CCode (cheader_filename = "libgda/libgda.h")]
631         public class MetaTable {
632                 public weak GLib.SList columns;
633                 public weak GLib.SList fk_list;
634                 public int pk_cols_array;
635                 public int pk_cols_nb;
636                 public weak GLib.SList reverse_fk_list;
637         }
638         [Compact]
639         [CCode (cheader_filename = "libgda/libgda.h")]
640         public class MetaTableColumn {
641                 public weak string column_name;
642                 public weak string column_type;
643                 public weak string default_value;
644                 public GLib.Type gtype;
645                 public bool nullok;
646                 public bool pkey;
647                 public void foreach_attribute (Gda.AttributesManagerFunc func, void* data);
648                 public GLib.Value get_attribute (string attribute);
649                 public void set_attribute (string attribute, GLib.Value value, GLib.DestroyNotify destroy);
650         }
651         [Compact]
652         [CCode (cheader_filename = "libgda/libgda.h")]
653         public class MetaTableForeignKey {
654                 public int cols_nb;
655                 public weak Gda.MetaDbObject depend_on;
656                 public int fk_cols_array;
657                 public weak string fk_names_array;
658                 public weak Gda.MetaDbObject meta_table;
659                 public int ref_pk_cols_array;
660                 public weak string ref_pk_names_array;
661         }
662         [Compact]
663         [CCode (cheader_filename = "libgda/libgda.h")]
664         public class MetaView {
665                 public bool is_updatable;
666                 public weak Gda.MetaTable table;
667                 public weak string view_def;
668         }
669         [Compact]
670         [CCode (cheader_filename = "libgda/libgda.h")]
671         public class Mutex {
672                 [CCode (has_construct_function = false)]
673                 public Mutex ();
674                 public void @lock ();
675                 public bool trylock ();
676                 public void unlock ();
677         }
678         [Compact]
679         [CCode (copy_function = "gda_numeric_copy", type_id = "GDA_TYPE_NUMERIC", cheader_filename = "libgda/libgda.h")]
680         public class Numeric {
681                 public weak string number;
682                 public long precision;
683                 public void* reserved;
684                 public long width;
685                 public static void* copy (void* boxed);
686         }
687         [CCode (cheader_filename = "libgda/libgda.h")]
688         public class PStmt : GLib.Object {
689                 public int ncols;
690                 public weak GLib.SList param_ids;
691                 public weak string sql;
692                 public weak GLib.SList tmpl_columns;
693                 [CCode (array_length = false)]
694                 public weak GLib.Type[] types;
695                 [CCode (has_construct_function = false)]
696                 protected PStmt ();
697                 public void copy_contents (Gda.PStmt dest);
698                 public unowned Gda.Statement get_gda_statement ();
699                 public void set_gda_statement (Gda.Statement stmt);
700         }
701         [Compact]
702         [CCode (cheader_filename = "libgda/libgda.h")]
703         public class ProviderInfo {
704                 public weak Gda.Set auth_params;
705                 public weak string description;
706                 public weak Gda.Set dsn_params;
707                 public weak string id;
708                 public weak string location;
709         }
710         [Compact]
711         [CCode (copy_function = "gda_quark_list_copy", type_id = "GDA_TYPE_QUARK_LIST", cheader_filename = "libgda/libgda.h")]
712         public class QuarkList {
713                 [CCode (has_construct_function = false)]
714                 public QuarkList ();
715                 public void add_from_string (string str, bool cleanup);
716                 public void clear ();
717                 public unowned Gda.QuarkList copy ();
718                 public unowned string find (string name);
719                 public void @foreach (GLib.HFunc func);
720                 [CCode (has_construct_function = false)]
721                 public QuarkList.from_string (string str);
722                 public void remove (string name);
723         }
724         [CCode (cheader_filename = "libgda/libgda.h")]
725         public class Row : GLib.Object {
726                 [CCode (has_construct_function = false)]
727                 public Row (int count);
728                 public int get_length ();
729                 public GLib.Value get_value (int num);
730                 public void invalidate_value (GLib.Value value);
731                 public bool value_is_valid (GLib.Value value);
732                 [NoAccessorMethod]
733                 public int nb_values { set; }
734         }
735         [CCode (cheader_filename = "libgda/libgda.h")]
736         public class ServerOperation : GLib.Object {
737                 [CCode (has_construct_function = false)]
738                 public ServerOperation (Gda.ServerOperationType op_type, string xml_file);
739                 public uint add_item_to_sequence (string path);
740                 public bool del_item_from_sequence (string item_path);
741                 public unowned Gda.ServerOperationNode get_node_info (string path_format);
742                 public unowned string get_node_parent (string path);
743                 public unowned string get_node_path_portion (string path);
744                 public Gda.ServerOperationNodeType get_node_type (string path, Gda.ServerOperationNodeStatus status);
745                 public Gda.ServerOperationType get_op_type ();
746                 public unowned string get_root_nodes ();
747                 public unowned string get_sequence_item_names (string path);
748                 public uint get_sequence_max_size (string path);
749                 public uint get_sequence_min_size (string path);
750                 public unowned string get_sequence_name (string path);
751                 public uint get_sequence_size (string path);
752                 public unowned string get_sql_identifier_at (Gda.Connection cnc, Gda.ServerProvider prov, string path_format);
753                 public GLib.Value get_value_at (string path_format);
754                 public bool is_valid (string xml_file) throws GLib.Error;
755                 public bool load_data_from_xml (Xml.Node node) throws GLib.Error;
756                 public static unowned string op_type_to_string (Gda.ServerOperationType type);
757                 public unowned Xml.Node save_data_to_xml () throws GLib.Error;
758                 [NoWrapper]
759                 public virtual void seq_item_added (string seq_path, int item_index);
760                 [NoWrapper]
761                 public virtual void seq_item_remove (string seq_path, int item_index);
762                 public bool set_value_at (string value, string path_format) throws GLib.Error;
763                 [NoAccessorMethod]
764                 public Gda.Connection connection { owned get; construct; }
765                 public int op_type { get; construct; }
766                 [NoAccessorMethod]
767                 public Gda.ServerProvider provider { owned get; construct; }
768                 public string spec_filename { construct; }
769                 public virtual signal void sequence_item_added (string p0, int p1);
770                 public virtual signal void sequence_item_remove (string p0, int p1);
771         }
772         [Compact]
773         [CCode (cheader_filename = "libgda/libgda.h")]
774         public class ServerOperationNode {
775                 public weak Gda.Column column;
776                 public weak Gda.DataModel model;
777                 public weak Gda.Holder param;
778                 public weak Gda.Set plist;
779                 public void* priv;
780                 public Gda.ServerOperationNodeStatus status;
781                 public Gda.ServerOperationNodeType type;
782         }
783         [CCode (cheader_filename = "libgda/libgda.h")]
784         public class ServerProvider : GLib.Object {
785                 [CCode (has_construct_function = false)]
786                 protected ServerProvider ();
787                 [NoWrapper]
788                 public virtual bool add_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
789                 [NoWrapper]
790                 public virtual bool begin_transaction (Gda.Connection cnc, string name, Gda.TransactionIsolation level) throws GLib.Error;
791                 [NoWrapper]
792                 public virtual bool cancel (Gda.Connection cnc, uint task_id) throws GLib.Error;
793                 [NoWrapper]
794                 public virtual bool close_connection (Gda.Connection cnc);
795                 [NoWrapper]
796                 public virtual bool commit_transaction (Gda.Connection cnc, string name) throws GLib.Error;
797                 [NoWrapper]
798                 public virtual unowned Gda.Connection create_connection ();
799                 public virtual unowned Gda.ServerOperation create_operation (Gda.Connection cnc, Gda.ServerOperationType type, Gda.Set options) throws GLib.Error;
800                 public virtual unowned Gda.SqlParser create_parser (Gda.Connection cnc);
801                 [NoWrapper]
802                 public virtual bool delete_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
803                 public static GLib.Quark error_quark ();
804                 public virtual unowned string escape_string (Gda.Connection cnc, string str);
805                 public unowned string find_file (string inst_dir, string filename);
806                 [NoWrapper]
807                 public virtual unowned Gda.DataHandler get_data_handler (Gda.Connection cnc, GLib.Type g_type, string dbms_type);
808                 public unowned Gda.DataHandler get_data_handler_dbms (Gda.Connection cnc, string for_type);
809                 public unowned Gda.DataHandler get_data_handler_default (Gda.Connection cnc, GLib.Type type, string dbms_type);
810                 public unowned Gda.DataHandler get_data_handler_g_type (Gda.Connection cnc, GLib.Type for_type);
811                 [NoWrapper]
812                 public virtual unowned string get_database (Gda.Connection cnc);
813                 [NoWrapper]
814                 public virtual unowned string get_def_dbms_type (Gda.Connection cnc, GLib.Type g_type);
815                 public unowned string get_default_dbms_type (Gda.Connection cnc, GLib.Type type);
816                 public virtual unowned string get_name ();
817                 public static int get_schema_nb_columns (Gda.ConnectionSchema schema);
818                 public virtual unowned string get_server_version (Gda.Connection cnc);
819                 public virtual unowned string get_version ();
820                 public void handler_declare (Gda.DataHandler dh, Gda.Connection cnc, GLib.Type g_type, string dbms_type);
821                 public unowned Gda.DataHandler handler_find (Gda.Connection cnc, GLib.Type g_type, string dbms_type);
822                 [NoWrapper]
823                 public virtual unowned string identifier_quote (Gda.Connection cnc, string id, bool for_meta_store, bool force_quotes);
824                 public static bool init_schema_model (Gda.DataModel model, Gda.ConnectionSchema schema);
825                 public unowned Gda.SqlParser internal_get_parser ();
826                 [NoWrapper]
827                 public virtual bool is_busy (Gda.Connection cnc) throws GLib.Error;
828                 public static unowned string load_file_contents (string inst_dir, string data_dir, string filename);
829                 [NoWrapper]
830                 public virtual bool open_connection (Gda.Connection cnc, Gda.QuarkList @params, Gda.QuarkList auth, uint task_id, Gda.ServerProviderAsyncCallback async_cb, void* cb_data);
831                 public virtual bool perform_operation (Gda.Connection cnc, Gda.ServerOperation op) throws GLib.Error;
832                 public bool perform_operation_default (Gda.Connection cnc, Gda.ServerOperation op) throws GLib.Error;
833                 public virtual unowned string render_operation (Gda.Connection cnc, Gda.ServerOperation op) throws GLib.Error;
834                 [NoWrapper]
835                 public virtual bool rollback_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
836                 [NoWrapper]
837                 public virtual bool rollback_transaction (Gda.Connection cnc, string name) throws GLib.Error;
838                 [NoWrapper]
839                 public virtual unowned GLib.Object statement_execute (Gda.Connection cnc, Gda.Statement stmt, Gda.Set @params, Gda.StatementModelUsage model_usage, GLib.Type[] col_types, out unowned Gda.Set last_inserted_row, uint task_id, Gda.ServerProviderExecCallback exec_cb, void* cb_data) throws GLib.Error;
840                 [NoWrapper]
841                 public virtual bool statement_prepare (Gda.Connection cnc, Gda.Statement stmt) throws GLib.Error;
842                 [NoWrapper]
843                 public virtual unowned string statement_to_sql (Gda.Connection cnc, Gda.Statement stmt, Gda.Set @params, Gda.StatementSqlFlag flags, GLib.SList params_used) throws GLib.Error;
844                 public GLib.Value string_to_value (Gda.Connection cnc, string str, GLib.Type preferred_type, string dbms_type);
845                 public virtual bool supports_feature (Gda.Connection cnc, Gda.ConnectionFeature feature);
846                 public virtual bool supports_operation (Gda.Connection cnc, Gda.ServerOperationType type, Gda.Set options);
847                 public static bool test_schema_model (Gda.DataModel model, Gda.ConnectionSchema schema) throws GLib.Error;
848                 public virtual unowned string unescape_string (Gda.Connection cnc, string str);
849                 public unowned string value_to_sql_string (Gda.Connection cnc, GLib.Value from);
850         }
851         [Compact]
852         [CCode (cheader_filename = "libgda/libgda.h")]
853         public class ServerProviderHandlerInfo {
854                 public weak Gda.Connection cnc;
855                 public weak string dbms_type;
856                 public GLib.Type g_type;
857         }
858         [Compact]
859         [CCode (cheader_filename = "libgda/libgda.h")]
860         public class ServerProviderInfo {
861         }
862         [Compact]
863         [CCode (cheader_filename = "libgda/libgda.h")]
864         public class ServerProviderMeta {
865                 public weak GLib.Callback character_sets;
866                 public weak GLib.Callback check_columns;
867                 public weak GLib.Callback collations;
868                 public weak GLib.Callback columns;
869                 public weak GLib.Callback constraints_dom;
870                 public weak GLib.Callback constraints_ref;
871                 public weak GLib.Callback constraints_tab;
872                 public weak GLib.Callback domains;
873                 public weak GLib.Callback el_types;
874                 public weak GLib.Callback enums;
875                 public weak GLib.Callback index_cols;
876                 public weak GLib.Callback indexes_tab;
877                 public weak GLib.Callback key_columns;
878                 public weak GLib.Callback routine_col;
879                 public weak GLib.Callback routine_par;
880                 public weak GLib.Callback routines;
881                 public weak GLib.Callback schemata;
882                 public weak GLib.Callback tables_views;
883                 public weak GLib.Callback triggers;
884                 public weak GLib.Callback udt;
885                 public weak GLib.Callback udt_cols;
886                 public weak GLib.Callback view_cols;
887         }
888         [Compact]
889         [CCode (cheader_filename = "libgda/libgda.h")]
890         public class ServerProviderXa {
891                 public weak GLib.Callback xa_commit;
892                 public weak GLib.Callback xa_end;
893                 public weak GLib.Callback xa_prepare;
894                 public weak GLib.Callback xa_recover;
895                 public weak GLib.Callback xa_rollback;
896                 public weak GLib.Callback xa_start;
897         }
898         [CCode (cheader_filename = "libgda/libgda.h")]
899         public class Set : GLib.Object {
900                 public weak GLib.SList groups_list;
901                 public weak GLib.SList nodes_list;
902                 public weak GLib.SList sources_list;
903                 [CCode (has_construct_function = false)]
904                 public Set (GLib.SList<Gda.Holder> holders);
905                 public bool add_holder (Gda.Holder holder);
906                 public unowned Gda.Set copy ();
907                 public static GLib.Quark error_quark ();
908                 [CCode (has_construct_function = false)]
909                 public Set.from_spec_node (Xml.Node xml_spec) throws GLib.Error;
910                 [CCode (has_construct_function = false)]
911                 public Set.from_spec_string (string xml_spec) throws GLib.Error;
912                 public unowned Gda.SetGroup get_group (Gda.Holder holder);
913                 public unowned Gda.Holder get_holder (string holder_id);
914                 public GLib.Value get_holder_value (string holder_id);
915                 public unowned Gda.SetNode get_node (Gda.Holder holder);
916                 public unowned Gda.SetSource get_source (Gda.Holder holder);
917                 public unowned Gda.SetSource get_source_for_model (Gda.DataModel model);
918                 [CCode (has_construct_function = false)]
919                 public Set.@inline (int nb);
920                 public bool is_valid () throws GLib.Error;
921                 public void merge_with_set (Gda.Set set_to_merge);
922                 public void remove_holder (Gda.Holder holder);
923                 public bool set_holder_value (string holder_id) throws GLib.Error;
924                 [NoAccessorMethod]
925                 public string description { owned get; set; }
926                 public void* holders { construct; }
927                 [NoAccessorMethod]
928                 public string id { owned get; set; }
929                 [NoAccessorMethod]
930                 public string name { owned get; set; }
931                 public virtual signal void holder_attr_changed (Gda.Holder holder, string attr_name, GLib.Value attr_value);
932                 public virtual signal void holder_changed (Gda.Holder holder);
933                 public virtual signal void public_data_changed ();
934                 public virtual signal unowned GLib.Error validate_holder_change (Gda.Holder holder, GLib.Value new_value);
935                 public virtual signal unowned GLib.Error validate_set ();
936         }
937         [Compact]
938         [CCode (cheader_filename = "libgda/libgda.h")]
939         public class SetGroup {
940                 public weak GLib.SList nodes;
941                 public weak Gda.SetSource nodes_source;
942         }
943         [Compact]
944         [CCode (cheader_filename = "libgda/libgda.h")]
945         public class SetNode {
946                 public weak Gda.Holder holder;
947                 public int source_column;
948                 public weak Gda.DataModel source_model;
949         }
950         [Compact]
951         [CCode (cheader_filename = "libgda/libgda.h")]
952         public class SetSource {
953                 public weak Gda.DataModel data_model;
954                 public weak GLib.SList nodes;
955         }
956         [Compact]
957         [CCode (cheader_filename = "libgda/libgda.h")]
958         public class SqlAnyPart {
959                 public weak Gda.SqlAnyPart parent;
960                 public Gda.SqlAnyPartType type;
961                 public bool check_structure () throws GLib.Error;
962                 public bool @foreach (Gda.SqlForeachFunc func, void* data) throws GLib.Error;
963         }
964         [Compact]
965         [CCode (copy_function = "gda_sql_case_copy", cheader_filename = "libgda/libgda.h")]
966         public class SqlCase {
967                 public weak Gda.SqlAnyPart any;
968                 public weak Gda.SqlExpr base_expr;
969                 public weak Gda.SqlExpr else_expr;
970                 public weak GLib.SList then_expr_list;
971                 public weak GLib.SList when_expr_list;
972                 [CCode (has_construct_function = false)]
973                 public SqlCase (Gda.SqlAnyPart parent);
974                 public unowned Gda.SqlCase copy ();
975                 public unowned string serialize ();
976         }
977         [Compact]
978         [CCode (copy_function = "gda_sql_expr_copy", cheader_filename = "libgda/libgda.h")]
979         public class SqlExpr {
980                 public weak Gda.SqlAnyPart any;
981                 public weak Gda.SqlCase case_s;
982                 public weak string cast_as;
983                 public weak Gda.SqlOperation cond;
984                 public weak Gda.SqlFunction func;
985                 public weak Gda.SqlParamSpec param_spec;
986                 public weak Gda.SqlAnyPart select;
987                 public GLib.Value value;
988                 public void* value_is_ident;
989                 [CCode (has_construct_function = false)]
990                 public SqlExpr (Gda.SqlAnyPart parent);
991                 public unowned Gda.SqlExpr copy ();
992                 public unowned string serialize ();
993                 public void take_select (Gda.SqlStatement stmt);
994         }
995         [Compact]
996         [CCode (copy_function = "gda_sql_field_copy", cheader_filename = "libgda/libgda.h")]
997         public class SqlField {
998                 public weak Gda.SqlAnyPart any;
999                 public weak string field_name;
1000                 public weak Gda.MetaTableColumn validity_meta_table_column;
1001                 [CCode (has_construct_function = false)]
1002                 public SqlField (Gda.SqlAnyPart parent);
1003                 public unowned Gda.SqlField copy ();
1004                 public unowned string serialize ();
1005                 public void take_name (GLib.Value value);
1006         }
1007         [Compact]
1008         [CCode (copy_function = "gda_sql_function_copy", cheader_filename = "libgda/libgda.h")]
1009         public class SqlFunction {
1010                 public weak Gda.SqlAnyPart any;
1011                 public weak GLib.SList args_list;
1012                 public weak string function_name;
1013                 [CCode (has_construct_function = false)]
1014                 public SqlFunction (Gda.SqlAnyPart parent);
1015                 public void check_clean ();
1016                 public unowned Gda.SqlFunction copy ();
1017                 public unowned string serialize ();
1018                 public void take_args_list (owned GLib.SList args);
1019                 public void take_name (GLib.Value value);
1020         }
1021         [Compact]
1022         [CCode (copy_function = "gda_sql_operation_copy", cheader_filename = "libgda/libgda.h")]
1023         public class SqlOperation {
1024                 public weak Gda.SqlAnyPart any;
1025                 public weak GLib.SList operands;
1026                 public Gda.SqlOperatorType operator_type;
1027                 [CCode (has_construct_function = false)]
1028                 public SqlOperation (Gda.SqlAnyPart parent);
1029                 public unowned Gda.SqlOperation copy ();
1030                 public static Gda.SqlOperatorType operator_from_string (string op);
1031                 public static unowned string operator_to_string (Gda.SqlOperatorType op);
1032                 public unowned string serialize ();
1033         }
1034         [Compact]
1035         [CCode (copy_function = "gda_sql_param_spec_copy", cheader_filename = "libgda/libgda.h")]
1036         public class SqlParamSpec {
1037                 public weak string descr;
1038                 public GLib.Type g_type;
1039                 public bool is_param;
1040                 public weak string name;
1041                 public bool nullok;
1042                 public void* validity_meta_dict;
1043                 [CCode (has_construct_function = false)]
1044                 public SqlParamSpec (GLib.Value simple_spec);
1045                 public unowned Gda.SqlParamSpec copy ();
1046                 public unowned string serialize ();
1047                 public void take_descr (GLib.Value value);
1048                 public void take_name (GLib.Value value);
1049                 public void take_nullok (GLib.Value value);
1050                 public void take_type (GLib.Value value);
1051         }
1052         [CCode (cheader_filename = "libgda/libgda.h")]
1053         public class SqlParser : GLib.Object, Gda.Lockable {
1054                 [CCode (has_construct_function = false)]
1055                 public SqlParser ();
1056                 [NoWrapper]
1057                 public virtual void* delim_alloc (GLib.Callback p1);
1058                 [NoWrapper]
1059                 public virtual void delim_free (void* p1, GLib.Callback p2);
1060                 [NoWrapper]
1061                 public virtual void delim_parse (void* p1, int p2, GLib.Value p3, Gda.SqlParserIface p4);
1062                 [NoWrapper]
1063                 public virtual void delim_trace (void* p1, string p2);
1064                 public static GLib.Quark error_quark ();
1065                 public unowned Gda.Batch parse_file_as_batch (string filename) throws GLib.Error;
1066                 public unowned Gda.Statement parse_string (string sql, out unowned string remain) throws GLib.Error;
1067                 public unowned Gda.Batch parse_string_as_batch (string sql, string remain) throws GLib.Error;
1068                 [NoWrapper]
1069                 public virtual void* parser_alloc (GLib.Callback p1);
1070                 [NoWrapper]
1071                 public virtual void parser_free (void* p1, GLib.Callback p2);
1072                 [NoWrapper]
1073                 public virtual void parser_parse (void* p1, int p2, GLib.Value p3, Gda.SqlParserIface p4);
1074                 [NoWrapper]
1075                 public virtual void parser_trace (void* p1, string p2);
1076                 public void set_overflow_error ();
1077                 public void set_syntax_error ();
1078                 [NoAccessorMethod]
1079                 public int column_error { get; }
1080                 [NoAccessorMethod]
1081                 public int line_error { get; }
1082                 [NoAccessorMethod]
1083                 public int mode { get; set; }
1084                 [NoAccessorMethod]
1085                 public int tokenizer_flavour { get; set; }
1086         }
1087         [Compact]
1088         [CCode (cheader_filename = "libgda/libgda.h")]
1089         public class SqlRenderingContext {
1090                 public weak Gda.Connection cnc;
1091                 public Gda.StatementSqlFlag flags;
1092                 public weak Gda.Set @params;
1093                 public weak GLib.SList params_used;
1094                 public weak Gda.ServerProvider provider;
1095                 public weak Gda.SqlRenderingFunc render_begin;
1096                 public weak Gda.SqlRenderingFunc render_case;
1097                 public weak Gda.SqlRenderingFunc render_commit;
1098                 public weak Gda.SqlRenderingFunc render_compound;
1099                 public weak Gda.SqlRenderingFunc render_delete;
1100                 public weak Gda.SqlRenderingFunc render_delete_savepoint;
1101                 public weak Gda.SqlRenderingExpr render_expr;
1102                 public weak Gda.SqlRenderingFunc render_field;
1103                 public weak Gda.SqlRenderingFunc render_function;
1104                 public weak Gda.SqlRenderingFunc render_insert;
1105                 public weak Gda.SqlRenderingFunc render_operation;
1106                 public weak Gda.SqlRenderingPSpecFunc render_param_spec;
1107                 public weak Gda.SqlRenderingFunc render_rollback;
1108                 public weak Gda.SqlRenderingFunc render_rollback_savepoint;
1109                 public weak Gda.SqlRenderingFunc render_savepoint;
1110                 public weak Gda.SqlRenderingFunc render_select;
1111                 public weak Gda.SqlRenderingFunc render_select_field;
1112                 public weak Gda.SqlRenderingFunc render_select_from;
1113                 public weak Gda.SqlRenderingFunc render_select_join;
1114                 public weak Gda.SqlRenderingFunc render_select_order;
1115                 public weak Gda.SqlRenderingFunc render_select_target;
1116                 public weak Gda.SqlRenderingFunc render_table;
1117                 public weak Gda.SqlRenderingFunc render_unknown;
1118                 public weak Gda.SqlRenderingFunc render_update;
1119                 public weak Gda.SqlRenderingValue render_value;
1120         }
1121         [Compact]
1122         [CCode (copy_function = "gda_sql_select_field_copy", cheader_filename = "libgda/libgda.h")]
1123         public class SqlSelectField {
1124                 public weak Gda.SqlAnyPart any;
1125                 public weak string @as;
1126                 public weak Gda.SqlExpr expr;
1127                 public weak string field_name;
1128                 public weak string table_name;
1129                 public weak Gda.MetaDbObject validity_meta_object;
1130                 public weak Gda.MetaTableColumn validity_meta_table_column;
1131                 [CCode (has_construct_function = false)]
1132                 public SqlSelectField (Gda.SqlAnyPart parent);
1133                 public unowned Gda.SqlSelectField copy ();
1134                 public unowned string serialize ();
1135                 public void take_alias (GLib.Value alias);
1136                 public void take_expr (Gda.SqlExpr expr);
1137                 public void take_star_value (GLib.Value value);
1138         }
1139         [Compact]
1140         [CCode (copy_function = "gda_sql_select_from_copy", cheader_filename = "libgda/libgda.h")]
1141         public class SqlSelectFrom {
1142                 public weak Gda.SqlAnyPart any;
1143                 public weak GLib.SList joins;
1144                 public weak GLib.SList targets;
1145                 [CCode (has_construct_function = false)]
1146                 public SqlSelectFrom (Gda.SqlAnyPart parent);
1147                 public unowned Gda.SqlSelectFrom copy ();
1148                 public unowned string serialize ();
1149                 public void take_new_join (Gda.SqlSelectJoin join);
1150                 public void take_new_target (Gda.SqlSelectTarget target);
1151         }
1152         [Compact]
1153         [CCode (copy_function = "gda_sql_select_join_copy", cheader_filename = "libgda/libgda.h")]
1154         public class SqlSelectJoin {
1155                 public weak Gda.SqlAnyPart any;
1156                 public weak Gda.SqlExpr expr;
1157                 public int position;
1158                 public Gda.SqlSelectJoinType type;
1159                 public weak GLib.SList use;
1160                 [CCode (has_construct_function = false)]
1161                 public SqlSelectJoin (Gda.SqlAnyPart parent);
1162                 public unowned Gda.SqlSelectJoin copy ();
1163                 public unowned string serialize ();
1164                 public static unowned string type_to_string (Gda.SqlSelectJoinType type);
1165         }
1166         [Compact]
1167         [CCode (copy_function = "gda_sql_select_order_copy", cheader_filename = "libgda/libgda.h")]
1168         public class SqlSelectOrder {
1169                 public weak Gda.SqlAnyPart any;
1170                 public bool asc;
1171                 public weak string collation_name;
1172                 public weak Gda.SqlExpr expr;
1173                 [CCode (has_construct_function = false)]
1174                 public SqlSelectOrder (Gda.SqlAnyPart parent);
1175                 public unowned Gda.SqlSelectOrder copy ();
1176                 public unowned string serialize ();
1177         }
1178         [Compact]
1179         [CCode (copy_function = "gda_sql_select_target_copy", cheader_filename = "libgda/libgda.h")]
1180         public class SqlSelectTarget {
1181                 public weak Gda.SqlAnyPart any;
1182                 public weak string @as;
1183                 public weak Gda.SqlExpr expr;
1184                 public weak string table_name;
1185                 public weak Gda.MetaDbObject validity_meta_object;
1186                 [CCode (has_construct_function = false)]
1187                 public SqlSelectTarget (Gda.SqlAnyPart parent);
1188                 public unowned Gda.SqlSelectTarget copy ();
1189                 public unowned string serialize ();
1190                 public void take_alias (GLib.Value alias);
1191                 public void take_select (Gda.SqlStatement stmt);
1192                 public void take_table_name (GLib.Value value);
1193         }
1194         [Compact]
1195         [CCode (copy_function = "gda_sql_statement_copy", cheader_filename = "libgda/libgda.h")]
1196         public class SqlStatement {
1197                 public void* contents;
1198                 public weak string sql;
1199                 public Gda.SqlStatementType stmt_type;
1200                 public weak Gda.MetaStruct validity_meta_struct;
1201                 [CCode (has_construct_function = false)]
1202                 public SqlStatement (Gda.SqlStatementType type);
1203                 public void check_clean ();
1204                 public bool check_structure () throws GLib.Error;
1205                 public bool check_validity (Gda.Connection cnc) throws GLib.Error;
1206                 public unowned Gda.SqlStatement copy ();
1207                 public static unowned Gda.SqlStatementContentsInfo get_contents_infos (Gda.SqlStatementType type);
1208                 public bool normalize (Gda.Connection cnc) throws GLib.Error;
1209                 public unowned string serialize ();
1210                 public static Gda.SqlStatementType string_to_type (string type);
1211                 public void trans_set_isol_level (Gda.TransactionIsolation level);
1212                 public void trans_take_mode (GLib.Value value);
1213                 public void trans_take_name (GLib.Value value);
1214                 public static unowned string type_to_string (Gda.SqlStatementType type);
1215         }
1216         [Compact]
1217         [CCode (cheader_filename = "libgda/libgda.h")]
1218         public class SqlStatementCheckValidityData {
1219                 public weak Gda.Connection cnc;
1220                 public weak Gda.MetaStruct mstruct;
1221                 public weak Gda.MetaStore store;
1222         }
1223         [Compact]
1224         [CCode (cheader_filename = "libgda/libgda.h")]
1225         public class SqlStatementCompound {
1226                 public weak Gda.SqlAnyPart any;
1227                 public Gda.SqlStatementCompoundType compound_type;
1228                 public weak GLib.SList stmt_list;
1229                 public static void set_type (Gda.SqlStatement stmt, Gda.SqlStatementCompoundType type);
1230                 public static void take_stmt (Gda.SqlStatement stmt, Gda.SqlStatement s);
1231         }
1232         [Compact]
1233         [CCode (cheader_filename = "libgda/libgda.h")]
1234         public class SqlStatementContentsInfo {
1235                 public weak Gda.SqlForeachFunc check_structure_func;
1236                 public weak Gda.SqlForeachFunc check_validity_func;
1237                 public weak GLib.Callback @construct;
1238                 public weak GLib.Callback copy;
1239                 public weak GLib.Callback free;
1240                 public weak string name;
1241                 public weak GLib.Callback serialize;
1242                 public Gda.SqlStatementType type;
1243         }
1244         [Compact]
1245         [CCode (cheader_filename = "libgda/libgda.h")]
1246         public class SqlStatementDelete {
1247                 public weak Gda.SqlAnyPart any;
1248                 public weak Gda.SqlExpr cond;
1249                 public weak Gda.SqlTable table;
1250                 public static void take_condition (Gda.SqlStatement stmt, Gda.SqlExpr cond);
1251                 public static void take_table_name (Gda.SqlStatement stmt, GLib.Value value);
1252         }
1253         [Compact]
1254         [CCode (cheader_filename = "libgda/libgda.h")]
1255         public class SqlStatementInsert {
1256                 public weak Gda.SqlAnyPart any;
1257                 public weak GLib.SList fields_list;
1258                 public weak string on_conflict;
1259                 public weak Gda.SqlAnyPart select;
1260                 public weak Gda.SqlTable table;
1261                 public weak GLib.SList values_list;
1262                 public static void take_1_values_list (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlExpr> list);
1263                 public static void take_extra_values_list (Gda.SqlStatement stmt, GLib.SList list);
1264                 public static void take_fields_list (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlField> list);
1265                 public static void take_on_conflict (Gda.SqlStatement stmt, GLib.Value value);
1266                 public static void take_select (Gda.SqlStatement stmt, Gda.SqlStatement select);
1267                 public static void take_table_name (Gda.SqlStatement stmt, GLib.Value value);
1268         }
1269         [Compact]
1270         [CCode (cheader_filename = "libgda/libgda.h")]
1271         public class SqlStatementSelect {
1272                 public weak Gda.SqlAnyPart any;
1273                 public bool distinct;
1274                 public weak Gda.SqlExpr distinct_expr;
1275                 public weak GLib.SList expr_list;
1276                 public weak Gda.SqlSelectFrom from;
1277                 public weak GLib.SList group_by;
1278                 public weak Gda.SqlExpr having_cond;
1279                 public weak Gda.SqlExpr limit_count;
1280                 public weak Gda.SqlExpr limit_offset;
1281                 public weak GLib.SList order_by;
1282                 public weak Gda.SqlExpr where_cond;
1283                 public static void take_distinct (Gda.SqlStatement stmt, bool distinct, Gda.SqlExpr distinct_expr);
1284                 public static void take_expr_list (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlSelectField> expr_list);
1285                 public static void take_from (Gda.SqlStatement stmt, Gda.SqlSelectFrom from);
1286                 public static void take_group_by (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlExpr> group_by);
1287                 public static void take_having_cond (Gda.SqlStatement stmt, Gda.SqlExpr expr);
1288                 public static void take_limits (Gda.SqlStatement stmt, Gda.SqlExpr count, Gda.SqlExpr offset);
1289                 public static void take_order_by (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlSelectOrder> order_by);
1290                 public static void take_where_cond (Gda.SqlStatement stmt, owned Gda.SqlExpr expr);
1291         }
1292         [Compact]
1293         [CCode (cheader_filename = "libgda/libgda.h")]
1294         public class SqlStatementTransaction {
1295                 public weak Gda.SqlAnyPart any;
1296                 public Gda.TransactionIsolation isolation_level;
1297                 public weak string trans_mode;
1298                 public weak string trans_name;
1299         }
1300         [Compact]
1301         [CCode (cheader_filename = "libgda/libgda.h")]
1302         public class SqlStatementUnknown {
1303                 public weak Gda.SqlAnyPart any;
1304                 public weak GLib.SList expressions;
1305                 public static void take_expressions (Gda.SqlStatement stmt, owned GLib.SList<Gda.SqlExpr> expressions);
1306         }
1307         [Compact]
1308         [CCode (cheader_filename = "libgda/libgda.h")]
1309         public class SqlStatementUpdate {
1310                 public weak Gda.SqlAnyPart any;
1311                 public weak Gda.SqlExpr cond;
1312                 public weak GLib.SList expr_list;
1313                 public weak GLib.SList fields_list;
1314                 public weak string on_conflict;
1315                 public weak Gda.SqlTable table;
1316                 public static void take_condition (Gda.SqlStatement stmt, Gda.SqlExpr cond);
1317                 public static void take_on_conflict (Gda.SqlStatement stmt, GLib.Value value);
1318                 public static void take_set_value (Gda.SqlStatement stmt, GLib.Value fname, Gda.SqlExpr expr);
1319                 public static void take_table_name (Gda.SqlStatement stmt, GLib.Value value);
1320         }
1321         [Compact]
1322         [CCode (copy_function = "gda_sql_table_copy", cheader_filename = "libgda/libgda.h")]
1323         public class SqlTable {
1324                 public weak Gda.SqlAnyPart any;
1325                 public weak string table_name;
1326                 public weak Gda.MetaDbObject validity_meta_object;
1327                 [CCode (has_construct_function = false)]
1328                 public SqlTable (Gda.SqlAnyPart parent);
1329                 public unowned Gda.SqlTable copy ();
1330                 public unowned string serialize ();
1331                 public void take_name (GLib.Value value);
1332         }
1333         [CCode (cheader_filename = "libgda/libgda.h")]
1334         public class SqliteProvider : Gda.ServerProvider {
1335                 [CCode (has_construct_function = false)]
1336                 protected SqliteProvider ();
1337         }
1338         [CCode (cheader_filename = "libgda/libgda.h")]
1339         public class Statement : GLib.Object {
1340                 [CCode (has_construct_function = false)]
1341                 public Statement ();
1342                 public bool check_structure () throws GLib.Error;
1343                 public bool check_validity (Gda.Connection cnc) throws GLib.Error;
1344                 public unowned Gda.Statement copy ();
1345                 public static GLib.Quark error_quark ();
1346                 public bool get_parameters (out unowned Gda.Set out_params) throws GLib.Error;
1347                 public Gda.SqlStatementType get_statement_type ();
1348                 public bool is_useless ();
1349                 public bool normalize (Gda.Connection cnc) throws GLib.Error;
1350                 public unowned string serialize ();
1351                 public unowned string to_sql_extended (Gda.Connection cnc, Gda.Set @params, Gda.StatementSqlFlag flags, GLib.SList<Gda.Holder> params_used) throws GLib.Error;
1352                 public unowned string to_sql_real (Gda.SqlRenderingContext context) throws GLib.Error;
1353                 [NoAccessorMethod]
1354                 public void* structure { get; set; }
1355                 public virtual signal void checked (Gda.Connection cnc, bool checked);
1356                 public virtual signal void reset ();
1357         }
1358         [Compact]
1359         [CCode (copy_function = "gda_time_copy", type_id = "GDA_TYPE_TIME", cheader_filename = "libgda/libgda.h")]
1360         public class Time {
1361                 public ulong fraction;
1362                 public ushort hour;
1363                 public ushort minute;
1364                 public ushort second;
1365                 public long timezone;
1366                 public static void* copy (void* boxed);
1367         }
1368         [Compact]
1369         [CCode (copy_function = "gda_timestamp_copy", type_id = "GDA_TYPE_TIMESTAMP", cheader_filename = "libgda/libgda.h")]
1370         public class Timestamp {
1371                 public ushort day;
1372                 public ulong fraction;
1373                 public ushort hour;
1374                 public ushort minute;
1375                 public ushort month;
1376                 public ushort second;
1377                 public long timezone;
1378                 public short year;
1379                 public static void* copy (void* boxed);
1380         }
1381         [CCode (cheader_filename = "libgda/libgda.h")]
1382         public class TransactionStatus : GLib.Object {
1383                 public weak GLib.List events;
1384                 public Gda.TransactionIsolation isolation_level;
1385                 public weak string name;
1386                 public Gda.TransactionStatusState state;
1387                 [CCode (has_construct_function = false)]
1388                 public TransactionStatus (string name);
1389         }
1390         [Compact]
1391         [CCode (cheader_filename = "libgda/libgda.h")]
1392         public class TransactionStatusEvent {
1393                 public weak Gda.ConnectionEvent conn_event;
1394                 public void* pl;
1395                 public weak Gda.TransactionStatus trans;
1396                 public Gda.TransactionStatusEventType type;
1397         }
1398         [Compact]
1399         [CCode (cheader_filename = "libgda/libgda.h")]
1400         public class ValueList {
1401         }
1402         [CCode (cheader_filename = "libgda/libgda.h")]
1403         public class VconnectionDataModel : Gda.VirtualConnection, Gda.Lockable {
1404                 [CCode (has_construct_function = false)]
1405                 protected VconnectionDataModel ();
1406                 public bool add (Gda.VconnectionDataModelSpec spec, GLib.DestroyNotify spec_free_func, string table_name) throws GLib.Error;
1407                 public bool add_model (Gda.DataModel model, string table_name) throws GLib.Error;
1408                 public void @foreach (Gda.VconnectionDataModelFunc func, void* data);
1409                 public unowned Gda.DataModel get_model (string table_name);
1410                 public unowned string get_table_name (Gda.DataModel model);
1411                 public bool remove (string table_name) throws GLib.Error;
1412         }
1413         [Compact]
1414         [CCode (cheader_filename = "libgda/libgda.h")]
1415         public class VconnectionDataModelSpec {
1416                 public weak Gda.VconnectionDataModelCreateColumnsFunc create_columns_func;
1417                 public weak Gda.VconnectionDataModelCreateModelFunc create_model_func;
1418                 public weak Gda.DataModel data_model;
1419         }
1420         [CCode (cheader_filename = "libgda/libgda.h")]
1421         public class VconnectionHub : Gda.VconnectionDataModel, Gda.Lockable {
1422                 [CCode (has_construct_function = false)]
1423                 protected VconnectionHub ();
1424                 public bool add (Gda.Connection cnc, string ns) throws GLib.Error;
1425                 public void @foreach (Gda.VConnectionHubFunc func, void* data);
1426                 public unowned Gda.Connection get_connection (string ns);
1427                 public bool remove (Gda.Connection cnc) throws GLib.Error;
1428         }
1429         [CCode (cheader_filename = "libgda/libgda.h")]
1430         public class VirtualConnection : Gda.Connection, Gda.Lockable {
1431                 [CCode (has_construct_function = false)]
1432                 protected VirtualConnection ();
1433                 public void* internal_get_provider_data ();
1434                 public void internal_set_provider_data (void* data, GLib.DestroyNotify destroy_func);
1435                 public static unowned Gda.Connection open (Gda.VirtualProvider virtual_provider) throws GLib.Error;
1436         }
1437         [CCode (cheader_filename = "libgda/libgda.h")]
1438         public class VirtualProvider : Gda.SqliteProvider {
1439                 [CCode (has_construct_function = false)]
1440                 protected VirtualProvider ();
1441         }
1442         [CCode (cheader_filename = "libgda/libgda.h")]
1443         public class VproviderDataModel : Gda.VirtualProvider {
1444                 [CCode (type = "GdaVirtualProvider*", has_construct_function = false)]
1445                 public VproviderDataModel ();
1446         }
1447         [CCode (cheader_filename = "libgda/libgda.h")]
1448         public class VproviderHub : Gda.VproviderDataModel {
1449                 [CCode (type = "GdaVirtualProvider*", has_construct_function = false)]
1450                 public VproviderHub ();
1451         }
1452         [CCode (cheader_filename = "libgda/libgda.h")]
1453         public class XaTransaction : GLib.Object {
1454                 [CCode (has_construct_function = false)]
1455                 public XaTransaction (uint32 format, string global_transaction_id);
1456                 public bool begin () throws GLib.Error;
1457                 public bool commit (out GLib.SList<Gda.Connection> cnc_to_recover) throws GLib.Error;
1458                 public bool commit_recovered (out GLib.SList<Gda.Connection> cnc_to_recover) throws GLib.Error;
1459                 public static GLib.Quark error_quark ();
1460                 public bool register_connection (Gda.Connection cnc, string branch) throws GLib.Error;
1461                 public bool rollback () throws GLib.Error;
1462                 public static unowned Gda.XaTransactionId string_to_id (string str);
1463                 public void unregister_connection (Gda.Connection cnc);
1464                 [NoAccessorMethod]
1465                 public uint format_id { get; construct; }
1466                 [NoAccessorMethod]
1467                 public string transaction_id { owned get; construct; }
1468         }
1469         [Compact]
1470         [CCode (cheader_filename = "libgda/libgda.h")]
1471         public class XaTransactionId {
1472                 public ushort bqual_length;
1473                 [CCode (array_length = false)]
1474                 public weak GLib.ObjectPath[] data;
1475                 public uint32 format;
1476                 public ushort gtrid_length;
1477                 public unowned string to_string ();
1478         }
1479         [CCode (cheader_filename = "libgda/libgda.h")]
1480         public interface DataHandler : GLib.Object {
1481                 public abstract bool accepts_g_type (GLib.Type type);
1482                 public abstract unowned string get_descr ();
1483                 public abstract GLib.Value get_sane_init_value (GLib.Type type);
1484                 public abstract unowned string get_sql_from_value (GLib.Value value);
1485                 public abstract unowned string get_str_from_value (GLib.Value value);
1486                 public abstract GLib.Value get_value_from_sql (string sql, GLib.Type type);
1487                 public abstract GLib.Value get_value_from_str (string str, GLib.Type type);
1488         }
1489         [CCode (cheader_filename = "libgda/libgda.h")]
1490         public interface DataModel : GLib.Object {
1491                 [CCode (vfunc_name = "i_append_row")]
1492                 public virtual int append_row () throws GLib.Error;
1493                 [CCode (vfunc_name = "i_append_values")]
1494                 public virtual int append_values (GLib.List<GLib.Value> values) throws GLib.Error;
1495                 [CCode (vfunc_name = "i_create_iter")]
1496                 public virtual unowned Gda.DataModelIter create_iter ();
1497                 [CCode (vfunc_name = "i_describe_column")]
1498                 public virtual unowned Gda.Column describe_column (int col);
1499                 public void dump (GLib.FileStream to_stream);
1500                 public unowned string dump_as_string ();
1501                 public static GLib.Quark error_quark ();
1502                 public bool export_to_file (Gda.DataModelIOFormat format, string file, int cols, int nb_cols, int rows, int nb_rows, Gda.Set options) throws GLib.Error;
1503                 public unowned string export_to_string (Gda.DataModelIOFormat format, int cols, int nb_cols, int rows, int nb_rows, Gda.Set options);
1504                 public void freeze ();
1505                 [CCode (vfunc_name = "i_get_access_flags")]
1506                 public virtual Gda.DataModelAccessFlags get_access_flags ();
1507                 [CCode (vfunc_name = "i_get_attributes_at")]
1508                 public virtual Gda.ValueAttribute get_attributes_at (int col, int row);
1509                 public int get_column_index (string name);
1510                 public unowned string get_column_name (int col);
1511                 public unowned string get_column_title (int col);
1512                 [CCode (vfunc_name = "i_get_n_columns")]
1513                 public virtual int get_n_columns ();
1514                 [CCode (vfunc_name = "i_get_n_rows")]
1515                 public virtual int get_n_rows ();
1516                 public int get_row_from_values (GLib.SList<GLib.Value> values, int[] cols_index);
1517                 public unowned GLib.Value? get_typed_value_at (int col, int row, GLib.Type expected_type, bool nullok) throws GLib.Error;
1518                 public unowned GLib.Value? get_value_at (int col, int row) throws GLib.Error;
1519                 [CCode (vfunc_name = "i_remove_row")]
1520                 public virtual bool remove_row (int row) throws GLib.Error;
1521                 [CCode (vfunc_name = "i_send_hint")]
1522                 public virtual void send_hint (Gda.DataModelHint hint, GLib.Value hint_value);
1523                 public void set_column_name (int col, string name);
1524                 public void set_column_title (int col, string title);
1525                 [CCode (vfunc_name = "i_set_value_at")]
1526                 public virtual bool set_value_at (int col, int row, GLib.Value value) throws GLib.Error;
1527                 [CCode (vfunc_name = "i_set_values")]
1528                 public virtual bool set_values (int row, GLib.List<GLib.Value> values) throws GLib.Error;
1529                 public void thaw ();
1530                 public signal void changed ();
1531                 public signal void reset ();
1532                 public signal void row_inserted (int row);
1533                 public signal void row_removed (int row);
1534                 public signal void row_updated (int row);
1535         }
1536         [CCode (cheader_filename = "libgda/libgda.h")]
1537         public interface Lockable : GLib.Object {
1538                 [CCode (vfunc_name = "i_lock")]
1539                 public virtual void @lock ();
1540                 [CCode (vfunc_name = "i_trylock")]
1541                 public virtual bool trylock ();
1542                 [CCode (vfunc_name = "i_unlock")]
1543                 public virtual void unlock ();
1544         }
1545         [CCode (type_id = "GDA_TYPE_DSN_INFO", cheader_filename = "libgda/libgda.h")]
1546         public struct DsnInfo {
1547                 public weak string name;
1548                 public weak string provider;
1549                 public weak string description;
1550                 public weak string cnc_string;
1551                 public weak string auth_string;
1552                 public bool is_system;
1553         }
1554         [CCode (type_id = "GDA_TYPE_SQL_PARSER_IFACE", cheader_filename = "libgda/libgda.h")]
1555         protected struct SqlParserIface {
1556                 public Gda.SqlParser parser;
1557                 public Gda.SqlStatement parsed_statement;
1558         }
1559         [CCode (cprefix = "GDA_CONFIG_", cheader_filename = "libgda/libgda.h")]
1560         public enum ConfigError {
1561                 DSN_NOT_FOUND_ERROR,
1562                 PERMISSION_ERROR,
1563                 PROVIDER_NOT_FOUND_ERROR,
1564                 PROVIDER_CREATION_ERROR
1565         }
1566         [CCode (cprefix = "GDA_CONNECTION_", cheader_filename = "libgda/libgda.h")]
1567         public enum ConnectionError {
1568                 DSN_NOT_FOUND_ERROR,
1569                 PROVIDER_NOT_FOUND_ERROR,
1570                 PROVIDER_ERROR,
1571                 NO_CNC_SPEC_ERROR,
1572                 NO_PROVIDER_SPEC_ERROR,
1573                 OPEN_ERROR,
1574                 STATEMENT_TYPE_ERROR
1575         }
1576         [CCode (cprefix = "GDA_CONNECTION_EVENT_CODE_", cheader_filename = "libgda/libgda.h")]
1577         public enum ConnectionEventCode {
1578                 CONSTRAINT_VIOLATION,
1579                 RESTRICT_VIOLATION,
1580                 NOT_NULL_VIOLATION,
1581                 FOREIGN_KEY_VIOLATION,
1582                 UNIQUE_VIOLATION,
1583                 CHECK_VIOLATION,
1584                 INSUFFICIENT_PRIVILEGES,
1585                 UNDEFINED_COLUMN,
1586                 UNDEFINED_FUNCTION,
1587                 UNDEFINED_TABLE,
1588                 DUPLICATE_COLUMN,
1589                 DUPLICATE_DATABASE,
1590                 DUPLICATE_FUNCTION,
1591                 DUPLICATE_SCHEMA,
1592                 DUPLICATE_TABLE,
1593                 DUPLICATE_ALIAS,
1594                 DUPLICATE_OBJECT,
1595                 SYNTAX_ERROR,
1596                 UNKNOWN
1597         }
1598         [CCode (cprefix = "GDA_CONNECTION_EVENT_", cheader_filename = "libgda/libgda.h")]
1599         public enum ConnectionEventType {
1600                 NOTICE,
1601                 WARNING,
1602                 ERROR,
1603                 COMMAND
1604         }
1605         [CCode (cprefix = "GDA_CONNECTION_FEATURE_", cheader_filename = "libgda/libgda.h")]
1606         public enum ConnectionFeature {
1607                 AGGREGATES,
1608                 BLOBS,
1609                 INDEXES,
1610                 INHERITANCE,
1611                 NAMESPACES,
1612                 PROCEDURES,
1613                 SEQUENCES,
1614                 SQL,
1615                 TRANSACTIONS,
1616                 SAVEPOINTS,
1617                 SAVEPOINTS_REMOVE,
1618                 TRIGGERS,
1619                 UPDATABLE_CURSOR,
1620                 USERS,
1621                 VIEWS,
1622                 XA_TRANSACTIONS,
1623                 LAST
1624         }
1625         [CCode (cprefix = "GDA_CONNECTION_META_", cheader_filename = "libgda/libgda.h")]
1626         public enum ConnectionMetaType {
1627                 NAMESPACES,
1628                 TYPES,
1629                 TABLES,
1630                 VIEWS,
1631                 FIELDS,
1632                 INDEXES
1633         }
1634         [CCode (cprefix = "GDA_CONNECTION_OPTIONS_", cheader_filename = "libgda/libgda.h")]
1635         [Flags]
1636         public enum ConnectionOptions {
1637                 NONE,
1638                 READ_ONLY,
1639                 SQL_IDENTIFIERS_CASE_SENSITIVE
1640         }
1641         [CCode (cprefix = "GDA_CONNECTION_SCHEMA_", cheader_filename = "libgda/libgda.h")]
1642         public enum ConnectionSchema {
1643                 AGGREGATES,
1644                 DATABASES,
1645                 FIELDS,
1646                 INDEXES,
1647                 LANGUAGES,
1648                 NAMESPACES,
1649                 PARENT_TABLES,
1650                 PROCEDURES,
1651                 SEQUENCES,
1652                 TABLES,
1653                 TRIGGERS,
1654                 TYPES,
1655                 USERS,
1656                 VIEWS,
1657                 CONSTRAINTS,
1658                 TABLE_CONTENTS
1659         }
1660         [CCode (cprefix = "GDA_DATA_COMPARATOR_", cheader_filename = "libgda/libgda.h")]
1661         public enum DataComparatorError {
1662                 MISSING_DATA_MODEL_ERROR,
1663                 COLUMN_TYPES_MISMATCH_ERROR,
1664                 MODEL_ACCESS_ERROR,
1665                 USER_CANCELLED_ERROR
1666         }
1667         [CCode (cprefix = "GDA_DATA_MODEL_ACCESS_", cheader_filename = "libgda/libgda.h")]
1668         [Flags]
1669         public enum DataModelAccessFlags {
1670                 RANDOM,
1671                 CURSOR_FORWARD,
1672                 CURSOR_BACKWARD,
1673                 CURSOR,
1674                 INSERT,
1675                 UPDATE,
1676                 DELETE,
1677                 WRITE
1678         }
1679         [CCode (cprefix = "GDA_DATA_MODEL_", cheader_filename = "libgda/libgda.h")]
1680         public enum DataModelError {
1681                 ROW_OUT_OF_RANGE_ERROR,
1682                 COLUMN_OUT_OF_RANGE_ERROR,
1683                 VALUES_LIST_ERROR,
1684                 VALUE_TYPE_ERROR,
1685                 ROW_NOT_FOUND_ERROR,
1686                 ACCESS_ERROR,
1687                 FEATURE_NON_SUPPORTED_ERROR,
1688                 FILE_EXIST_ERROR,
1689                 XML_FORMAT_ERROR
1690         }
1691         [CCode (cprefix = "GDA_DATA_MODEL_HINT_", cheader_filename = "libgda/libgda.h")]
1692         public enum DataModelHint {
1693                 START_BATCH_UPDATE,
1694                 END_BATCH_UPDATE,
1695                 REFRESH
1696         }
1697         [CCode (cprefix = "GDA_DATA_MODEL_IO_", cheader_filename = "libgda/libgda.h")]
1698         public enum DataModelIOFormat {
1699                 DATA_ARRAY_XML,
1700                 TEXT_SEPARATED
1701         }
1702         [CCode (cprefix = "GDA_DATA_MODEL_ITER_COLUMN_OUT_OF_RANGE_", cheader_filename = "libgda/libgda.h")]
1703         public enum DataModelIterError {
1704                 ERROR
1705         }
1706         [CCode (cprefix = "GDA_DATA_PROXY_", cheader_filename = "libgda/libgda.h")]
1707         public enum DataProxyError {
1708                 COMMIT_ERROR,
1709                 COMMIT_CANCELLED,
1710                 READ_ONLY_VALUE,
1711                 READ_ONLY_ROW,
1712                 FILTER_ERROR
1713         }
1714         [CCode (cprefix = "GDA_DIFF_", cheader_filename = "libgda/libgda.h")]
1715         public enum DiffType {
1716                 ADD_ROW,
1717                 REMOVE_ROW,
1718                 MODIFY_ROW
1719         }
1720         [CCode (cprefix = "GDA_EASY_CREATE_TABLE_", cheader_filename = "libgda/libgda.h")]
1721         [Flags]
1722         public enum EasyCreateTableFlag {
1723                 NOTHING_FLAG,
1724                 PKEY_FLAG,
1725                 NOT_NULL_FLAG,
1726                 UNIQUE_FLAG,
1727                 AUTOINC_FLAG,
1728                 FKEY_FLAG,
1729                 PKEY_AUTOINC_FLAG
1730         }
1731         [CCode (cprefix = "GDA_EASY_", cheader_filename = "libgda/libgda.h")]
1732         public enum EasyError {
1733                 OBJECT_NAME_ERROR,
1734                 INCORRECT_VALUE_ERROR,
1735                 OPERATION_ERROR
1736         }
1737         [CCode (cprefix = "GDA_HOLDER_", cheader_filename = "libgda/libgda.h")]
1738         public enum HolderError {
1739                 STRING_CONVERSION_ERROR,
1740                 VALUE_TYPE_ERROR,
1741                 VALUE_NULL_ERROR
1742         }
1743         [CCode (cprefix = "GDA_META_DB_", cheader_filename = "libgda/libgda.h")]
1744         public enum MetaDbObjectType {
1745                 UNKNOWN,
1746                 TABLE,
1747                 VIEW
1748         }
1749         [CCode (cprefix = "GDA_META_GRAPH_", cheader_filename = "libgda/libgda.h")]
1750         [Flags]
1751         public enum MetaGraphInfo {
1752                 COLUMNS
1753         }
1754         [CCode (cprefix = "GDA_META_SORT_", cheader_filename = "libgda/libgda.h")]
1755         public enum MetaSortType {
1756                 ALHAPETICAL,
1757                 DEPENDENCIES
1758         }
1759         [CCode (cprefix = "GDA_META_STORE_", cheader_filename = "libgda/libgda.h")]
1760         public enum MetaStoreChangeType {
1761                 ADD,
1762                 REMOVE,
1763                 MODIFY
1764         }
1765         [CCode (cprefix = "GDA_META_STORE_", cheader_filename = "libgda/libgda.h")]
1766         public enum MetaStoreError {
1767                 INCORRECT_SCHEMA_ERROR,
1768                 UNSUPPORTED_PROVIDER_ERROR,
1769                 INTERNAL_ERROR,
1770                 META_CONTEXT_ERROR,
1771                 MODIFY_CONTENTS_ERROR,
1772                 EXTRACT_SQL_ERROR,
1773                 ATTRIBUTE_NOT_FOUND_ERROR,
1774                 ATTRIBUTE_ERROR,
1775                 SCHEMA_OBJECT_NOT_FOUND_ERROR,
1776                 SCHEMA_OBJECT_CONFLICT_ERROR,
1777                 SCHEMA_OBJECT_DESCR_ERROR,
1778                 TRANSACTION_ALREADY_STARTED_ERROR
1779         }
1780         [CCode (cprefix = "GDA_META_STRUCT_", cheader_filename = "libgda/libgda.h")]
1781         public enum MetaStructError {
1782                 UNKNOWN_OBJECT_ERROR,
1783                 DUPLICATE_OBJECT_ERROR,
1784                 INCOHERENCE_ERROR
1785         }
1786         [CCode (cprefix = "GDA_META_STRUCT_FEATURE_", cheader_filename = "libgda/libgda.h")]
1787         [Flags]
1788         public enum MetaStructFeature {
1789                 NONE,
1790                 FOREIGN_KEYS,
1791                 VIEW_DEPENDENCIES,
1792                 ALL
1793         }
1794         [CCode (cprefix = "GDA_", has_type_id = false, cheader_filename = "libgda/libgda.h")]
1795         public enum PrefixDir {
1796                 NO_DIR,
1797                 BIN_DIR,
1798                 SBIN_DIR,
1799                 DATA_DIR,
1800                 LOCALE_DIR,
1801                 LIB_DIR,
1802                 LIBEXEC_DIR,
1803                 ETC_DIR
1804         }
1805         [CCode (cprefix = "GDA_SERVER_OPERATION_STATUS_", cheader_filename = "libgda/libgda.h")]
1806         public enum ServerOperationNodeStatus {
1807                 OPTIONAL,
1808                 REQUIRED,
1809                 UNKNOWN
1810         }
1811         [CCode (cprefix = "GDA_SERVER_OPERATION_NODE_", cheader_filename = "libgda/libgda.h")]
1812         public enum ServerOperationNodeType {
1813                 PARAMLIST,
1814                 DATA_MODEL,
1815                 PARAM,
1816                 SEQUENCE,
1817                 SEQUENCE_ITEM,
1818                 DATA_MODEL_COLUMN,
1819                 UNKNOWN
1820         }
1821         [CCode (cprefix = "GDA_SERVER_OPERATION_", cheader_filename = "libgda/libgda.h")]
1822         public enum ServerOperationType {
1823                 CREATE_DB,
1824                 DROP_DB,
1825                 CREATE_TABLE,
1826                 DROP_TABLE,
1827                 RENAME_TABLE,
1828                 ADD_COLUMN,
1829                 DROP_COLUMN,
1830                 CREATE_INDEX,
1831                 DROP_INDEX,
1832                 CREATE_VIEW,
1833                 DROP_VIEW,
1834                 LAST
1835         }
1836         [CCode (cprefix = "GDA_SERVER_PROVIDER_", cheader_filename = "libgda/libgda.h")]
1837         public enum ServerProviderError {
1838                 METHOD_NON_IMPLEMENTED_ERROR,
1839                 PREPARE_STMT_ERROR,
1840                 EMPTY_STMT_ERROR,
1841                 MISSING_PARAM_ERROR,
1842                 STATEMENT_EXEC_ERROR,
1843                 OPERATION_ERROR,
1844                 INTERNAL_ERROR,
1845                 BUSY_ERROR,
1846                 NON_SUPPORTED_ERROR,
1847                 SERVER_VERSION_ERROR,
1848                 DATA_ERROR
1849         }
1850         [CCode (cprefix = "GDA_SET_", cheader_filename = "libgda/libgda.h")]
1851         public enum SetError {
1852                 XML_SPEC_ERROR,
1853                 HOLDER_NOT_FOUND_ERROR,
1854                 INVALID_ERROR
1855         }
1856         [CCode (cprefix = "GDA_SQL_ANY_", cheader_filename = "libgda/libgda.h")]
1857         public enum SqlAnyPartType {
1858                 STMT_SELECT,
1859                 STMT_INSERT,
1860                 STMT_UPDATE,
1861                 STMT_DELETE,
1862                 STMT_COMPOUND,
1863                 STMT_BEGIN,
1864                 STMT_ROLLBACK,
1865                 STMT_COMMIT,
1866                 STMT_SAVEPOINT,
1867                 STMT_ROLLBACK_SAVEPOINT,
1868                 STMT_DELETE_SAVEPOINT,
1869                 STMT_UNKNOWN,
1870                 EXPR,
1871                 SQL_FIELD,
1872                 SQL_TABLE,
1873                 SQL_FUNCTION,
1874                 SQL_OPERATION,
1875                 SQL_CASE,
1876                 SQL_SELECT_FIELD,
1877                 SQL_SELECT_TARGET,
1878                 SQL_SELECT_JOIN,
1879                 SQL_SELECT_FROM,
1880                 SQL_SELECT_ORDER
1881         }
1882         [CCode (cprefix = "GDA_SQL_", cheader_filename = "libgda/libgda.h")]
1883         public enum SqlErrorType {
1884                 STRUCTURE_CONTENTS_ERROR,
1885                 MALFORMED_IDENTIFIER_ERROR,
1886                 MISSING_IDENTIFIER_ERROR,
1887                 VALIDATION_ERROR
1888         }
1889         [CCode (cprefix = "GDA_SQL_IDENTIFIERS_", cheader_filename = "libgda/libgda.h")]
1890         [Flags]
1891         public enum SqlIdentifierStyle {
1892                 LOWER_CASE,
1893                 UPPER_CASE
1894         }
1895         [CCode (cprefix = "GDA_SQL_OPERATOR_TYPE_", cheader_filename = "libgda/libgda.h")]
1896         public enum SqlOperatorType {
1897                 AND,
1898                 OR,
1899                 EQ,
1900                 IS,
1901                 LIKE,
1902                 BETWEEN,
1903                 GT,
1904                 LT,
1905                 GEQ,
1906                 LEQ,
1907                 DIFF,
1908                 REGEXP,
1909                 REGEXP_CI,
1910                 NOT_REGEXP,
1911                 NOT_REGEXP_CI,
1912                 SIMILAR,
1913                 ISNULL,
1914                 ISNOTNULL,
1915                 NOT,
1916                 IN,
1917                 NOTIN,
1918                 CONCAT,
1919                 PLUS,
1920                 MINUS,
1921                 STAR,
1922                 DIV,
1923                 REM,
1924                 BITAND,
1925                 BITOR,
1926                 BITNOT
1927         }
1928         [CCode (cprefix = "GDA_SQL_PARSER_", cheader_filename = "libgda/libgda.h")]
1929         public enum SqlParserError {
1930                 SYNTAX_ERROR,
1931                 OVERFLOW_ERROR,
1932                 EMPTY_SQL_ERROR
1933         }
1934         [CCode (cprefix = "GDA_SQL_PARSER_FLAVOUR_", cheader_filename = "libgda/libgda.h")]
1935         public enum SqlParserFlavour {
1936                 STANDARD,
1937                 SQLITE,
1938                 MYSQL,
1939                 ORACLE,
1940                 POSTGRESQL
1941         }
1942         [CCode (cprefix = "GDA_SQL_PARSER_MODE_", cheader_filename = "libgda/libgda.h")]
1943         public enum SqlParserMode {
1944                 PARSE,
1945                 DELIMIT
1946         }
1947         [CCode (cprefix = "GDA_SQL_SELECT_JOIN_", cheader_filename = "libgda/libgda.h")]
1948         public enum SqlSelectJoinType {
1949                 CROSS,
1950                 NATURAL,
1951                 INNER,
1952                 LEFT,
1953                 RIGHT,
1954                 FULL
1955         }
1956         [CCode (cprefix = "GDA_SQL_STATEMENT_COMPOUND_", cheader_filename = "libgda/libgda.h")]
1957         public enum SqlStatementCompoundType {
1958                 UNION,
1959                 UNION_ALL,
1960                 INTERSECT,
1961                 INTERSECT_ALL,
1962                 EXCEPT,
1963                 EXCEPT_ALL
1964         }
1965         [CCode (cprefix = "GDA_SQL_STATEMENT_", cheader_filename = "libgda/libgda.h")]
1966         public enum SqlStatementType {
1967                 SELECT,
1968                 INSERT,
1969                 UPDATE,
1970                 DELETE,
1971                 COMPOUND,
1972                 BEGIN,
1973                 ROLLBACK,
1974                 COMMIT,
1975                 SAVEPOINT,
1976                 ROLLBACK_SAVEPOINT,
1977                 DELETE_SAVEPOINT,
1978                 UNKNOWN,
1979                 NONE
1980         }
1981         [CCode (cprefix = "GDA_STATEMENT_", cheader_filename = "libgda/libgda.h")]
1982         public enum StatementError {
1983                 PARSE_ERROR,
1984                 SYNTAX_ERROR,
1985                 NO_CNC_ERROR,
1986                 CNC_CLOSED_ERROR,
1987                 EXEC_ERROR,
1988                 PARAM_TYPE_ERROR,
1989                 PARAM_ERROR
1990         }
1991         [CCode (cprefix = "GDA_STATEMENT_MODEL_", cheader_filename = "libgda/libgda.h")]
1992         [Flags]
1993         public enum StatementModelUsage {
1994                 RANDOM_ACCESS,
1995                 CURSOR_FORWARD,
1996                 CURSOR_BACKWARD,
1997                 CURSOR,
1998                 ALLOW_NOPARAM
1999         }
2000         [CCode (cprefix = "GDA_STATEMENT_SQL_", cheader_filename = "libgda/libgda.h")]
2001         [Flags]
2002         public enum StatementSqlFlag {
2003                 PRETTY,
2004                 PARAMS_LONG,
2005                 PARAMS_SHORT,
2006                 PARAMS_AS_COLON,
2007                 PARAMS_AS_DOLLAR,
2008                 PARAMS_AS_QMARK,
2009                 PARAMS_AS_UQMARK
2010         }
2011         [CCode (cprefix = "GDA_TRANSACTION_ISOLATION_", cheader_filename = "libgda/libgda.h")]
2012         public enum TransactionIsolation {
2013                 UNKNOWN,
2014                 READ_COMMITTED,
2015                 READ_UNCOMMITTED,
2016                 REPEATABLE_READ,
2017                 SERIALIZABLE
2018         }
2019         [CCode (cprefix = "GDA_TRANSACTION_STATUS_EVENT_", cheader_filename = "libgda/libgda.h")]
2020         public enum TransactionStatusEventType {
2021                 SAVEPOINT,
2022                 SQL,
2023                 SUB_TRANSACTION
2024         }
2025         [CCode (cprefix = "GDA_TRANSACTION_STATUS_STATE_", cheader_filename = "libgda/libgda.h")]
2026         public enum TransactionStatusState {
2027                 OK,
2028                 FAILED
2029         }
2030         [CCode (cprefix = "GDA_VALUE_ATTR_", cheader_filename = "libgda/libgda.h")]
2031         [Flags]
2032         public enum ValueAttribute {
2033                 NONE,
2034                 IS_NULL,
2035                 CAN_BE_NULL,
2036                 IS_DEFAULT,
2037                 CAN_BE_DEFAULT,
2038                 IS_UNCHANGED,
2039                 ACTIONS_SHOWN,
2040                 DATA_NON_VALID,
2041                 HAS_VALUE_ORIG,
2042                 NO_MODIF,
2043                 UNUSED
2044         }
2045         [CCode (cprefix = "GDA_XA_TRANSACTION_", cheader_filename = "libgda/libgda.h")]
2046         public enum XaTransactionError {
2047                 ALREADY_REGISTERED_ERROR,
2048                 DTP_NOT_SUPPORTED_ERROR
2049         }
2050         [CCode (cheader_filename = "libgda/libgda.h")]
2051         public delegate void AttributesManagerFunc (string att_name, GLib.Value value);
2052         [CCode (cheader_filename = "libgda/libgda.h")]
2053         public delegate void AttributesManagerSignal (GLib.Object obj, string att_name, GLib.Value value);
2054         [CCode (cheader_filename = "libgda/libgda.h")]
2055         public delegate void ServerProviderAsyncCallback (Gda.ServerProvider provider, Gda.Connection cnc, uint task_id, bool result_status, GLib.Error error);
2056         [CCode (cheader_filename = "libgda/libgda.h")]
2057         public delegate void ServerProviderExecCallback (Gda.ServerProvider provider, Gda.Connection cnc, uint task_id, GLib.Object result_obj, GLib.Error error);
2058         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2059         public delegate bool SqlForeachFunc (Gda.SqlAnyPart p1, void* p2, GLib.Error p3);
2060         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2061         public delegate unowned string SqlRenderingExpr (Gda.SqlExpr expr, Gda.SqlRenderingContext context, bool is_default, bool is_null, GLib.Error error);
2062         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2063         public delegate unowned string SqlRenderingFunc (Gda.SqlAnyPart node, Gda.SqlRenderingContext context, GLib.Error error);
2064         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2065         public delegate unowned string SqlRenderingPSpecFunc (Gda.SqlParamSpec pspec, Gda.SqlExpr expr, Gda.SqlRenderingContext context, bool is_default, bool is_null, GLib.Error error);
2066         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2067         public delegate unowned string SqlRenderingValue (GLib.Value value, Gda.SqlRenderingContext context, GLib.Error error);
2068         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2069         public delegate bool SqlReservedKeywordsFunc (string word);
2070         [CCode (cheader_filename = "libgda/libgda.h")]
2071         public delegate void VConnectionHubFunc (Gda.Connection cnc, string ns);
2072         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2073         public delegate unowned GLib.List VconnectionDataModelCreateColumnsFunc (Gda.VconnectionDataModelSpec p1, GLib.Error p2);
2074         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2075         public delegate unowned Gda.DataModel VconnectionDataModelCreateModelFunc (Gda.VconnectionDataModelSpec p1);
2076         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2077         public delegate void VconnectionDataModelFunc (Gda.DataModel p1, string p2, void* p3);
2078         [CCode (cheader_filename = "libgda/libgda.h")]
2079         public const string ATTRIBUTE_AUTO_INCREMENT;
2080         [CCode (cheader_filename = "libgda/libgda.h")]
2081         public const string ATTRIBUTE_DESCRIPTION;
2082         [CCode (cheader_filename = "libgda/libgda.h")]
2083         public const string ATTRIBUTE_IS_DEFAULT;
2084         [CCode (cheader_filename = "libgda/libgda.h")]
2085         public const string ATTRIBUTE_NAME;
2086         [CCode (cheader_filename = "libgda/libgda.h")]
2087         public const string ATTRIBUTE_NUMERIC_PRECISION;
2088         [CCode (cheader_filename = "libgda/libgda.h")]
2089         public const string ATTRIBUTE_NUMERIC_SCALE;
2090         [CCode (cheader_filename = "libgda/libgda.h")]
2091         public const string D_COL_ERR;
2092         [CCode (cheader_filename = "libgda/libgda.h")]
2093         public const string D_COL_H0;
2094         [CCode (cheader_filename = "libgda/libgda.h")]
2095         public const string D_COL_H1;
2096         [CCode (cheader_filename = "libgda/libgda.h")]
2097         public const string D_COL_H2;
2098         [CCode (cheader_filename = "libgda/libgda.h")]
2099         public const string D_COL_NOR;
2100         [CCode (cheader_filename = "libgda/libgda.h")]
2101         public const string D_COL_OK;
2102         [CCode (cheader_filename = "libgda/libgda.h")]
2103         public const string EXTRA_AUTO_INCREMENT;
2104         [CCode (cheader_filename = "libgda/libgda.h")]
2105         public const string SQLSTATE_GENERAL_ERROR;
2106         [CCode (cheader_filename = "libgda/libgda.h")]
2107         public const string SQLSTATE_NO_ERROR;
2108         [CCode (cheader_filename = "libgda/libgda.h")]
2109         public const int TIMEZONE_INVALID;
2110         [CCode (cheader_filename = "libgda/libgda.h")]
2111         public const int TYPE_NULL;
2112         [CCode (cheader_filename = "libgda/libgda.h")]
2113         public static unowned string alphanum_to_text (string text);
2114         [CCode (cheader_filename = "libgda/libgda.h")]
2115         public static unowned string completion_list_get (Gda.Connection cnc, string sql, int start, int end);
2116         [CCode (cheader_filename = "libgda/libgda.h")]
2117         public static bool compute_dml_statements (Gda.Connection cnc, Gda.Statement select_stmt, bool require_pk, out unowned Gda.Statement insert_stmt, out unowned Gda.Statement update_stmt, out unowned Gda.Statement delete_stmt) throws GLib.Error;
2118         [CCode (cheader_filename = "libgda/libgda.h")]
2119         public static unowned Gda.SqlStatement compute_select_statement_from_update (Gda.Statement update_stmt) throws GLib.Error;
2120         [CCode (cheader_filename = "libgda/libgda.h")]
2121         public static unowned Gda.SqlExpr compute_unique_table_row_condition (Gda.SqlStatementSelect stsel, Gda.MetaTable mtable, bool require_pk) throws GLib.Error;
2122         [CCode (cheader_filename = "libgda/libgda.h")]
2123         public static unowned string default_escape_string (string str);
2124         [CCode (cheader_filename = "libgda/libgda.h")]
2125         public static unowned string default_unescape_string (string str);
2126         [CCode (cheader_filename = "libgda/libgda.h")]
2127         public static bool delete_row_from_table (Gda.Connection cnc, string table, string condition_column_name, GLib.Value condition_value) throws GLib.Error;
2128         [CCode (cheader_filename = "libgda/libgda.h")]
2129         public static void dsn_split (string str, string out_dsn, string out_username, string out_password);
2130         [CCode (cheader_filename = "libgda/libgda.h")]
2131         public static GLib.Quark easy_error_quark ();
2132         [CCode (cheader_filename = "libgda/libgda.h")]
2133         public static int execute_non_select_command (Gda.Connection cnc, string sql) throws GLib.Error;
2134         [CCode (cheader_filename = "libgda/libgda.h")]
2135         public static unowned Gda.DataModel execute_select_command (Gda.Connection cnc, string sql) throws GLib.Error;
2136         [CCode (cheader_filename = "libgda/libgda.h")]
2137         public static GLib.Type g_type_from_string (string str);
2138         [CCode (cheader_filename = "libgda/libgda.h")]
2139         public static unowned string g_type_to_string (GLib.Type type);
2140         [CCode (cheader_filename = "libgda/libgda.h")]
2141         public static unowned string gbr_get_file_path (Gda.PrefixDir where);
2142         [CCode (cheader_filename = "libgda/libgda.h")]
2143         public static void gbr_init ();
2144         [CCode (cheader_filename = "libgda/libgda.h")]
2145         public static unowned string get_application_exec_path (string app_name);
2146         [CCode (cheader_filename = "libgda/libgda.h")]
2147         public static unowned Gda.DataHandler get_default_handler (GLib.Type for_type);
2148         [CCode (cheader_filename = "libgda/libgda.h")]
2149         public static bool identifier_equal (string id1, string id2);
2150         [CCode (cheader_filename = "libgda/libgda.h")]
2151         public static uint identifier_hash (string id);
2152         [CCode (cheader_filename = "libgda/libgda.h")]
2153         public static void init ();
2154         [CCode (cheader_filename = "libgda/libgda.h")]
2155         public static bool insert_row_into_table (Gda.Connection cnc, string table) throws GLib.Error;
2156         [CCode (cheader_filename = "libgda/libgda.h")]
2157         public static bool insert_row_into_table_v (Gda.Connection cnc, string table, GLib.SList col_names, GLib.SList values) throws GLib.Error;
2158         [CCode (cheader_filename = "libgda/libgda.h")]
2159         public static void log_disable ();
2160         [CCode (cheader_filename = "libgda/libgda.h")]
2161         public static void log_enable ();
2162         [CCode (cheader_filename = "libgda/libgda.h")]
2163         public static void log_error (string format);
2164         [CCode (cheader_filename = "libgda/libgda.h")]
2165         public static bool log_is_enabled ();
2166         [CCode (cheader_filename = "libgda/libgda.h")]
2167         public static void log_message (string format);
2168         [CCode (cheader_filename = "libgda/libgda.h")]
2169         public static bool parse_iso8601_date (GLib.Date gdate, string value);
2170         [CCode (cheader_filename = "libgda/libgda.h")]
2171         public static bool parse_iso8601_time (Gda.Time timegda, string value);
2172         [CCode (cheader_filename = "libgda/libgda.h")]
2173         public static bool parse_iso8601_timestamp (Gda.Timestamp timestamp, string value);
2174         [CCode (cheader_filename = "libgda/libgda.h")]
2175         public static bool perform_create_database (string provider, Gda.ServerOperation op) throws GLib.Error;
2176         [CCode (cheader_filename = "libgda/libgda.h")]
2177         public static bool perform_create_table (Gda.ServerOperation op) throws GLib.Error;
2178         [CCode (cheader_filename = "libgda/libgda.h")]
2179         public static bool perform_drop_database (string provider, Gda.ServerOperation op) throws GLib.Error;
2180         [CCode (cheader_filename = "libgda/libgda.h")]
2181         public static bool perform_drop_table (Gda.ServerOperation op) throws GLib.Error;
2182         [CCode (cheader_filename = "libgda/libgda.h")]
2183         public static unowned Gda.ServerOperation prepare_create_database (string provider, string db_name) throws GLib.Error;
2184         [CCode (cheader_filename = "libgda/libgda.h")]
2185         public static unowned Gda.ServerOperation prepare_create_table (Gda.Connection cnc, string table_name) throws GLib.Error;
2186         [CCode (cheader_filename = "libgda/libgda.h")]
2187         public static unowned Gda.ServerOperation prepare_drop_database (string provider, string db_name) throws GLib.Error;
2188         [CCode (cheader_filename = "libgda/libgda.h")]
2189         public static unowned Gda.ServerOperation prepare_drop_table (Gda.Connection cnc, string table_name) throws GLib.Error;
2190         [CCode (cheader_filename = "libgda/libgda.h")]
2191         public static bool rfc1738_decode (string str);
2192         [CCode (cheader_filename = "libgda/libgda.h")]
2193         public static unowned string rfc1738_encode (string str);
2194         [CCode (cheader_filename = "libgda/libgda.h")]
2195         public static unowned Gda.Statement select_alter_select_for_empty (Gda.Statement stmt) throws GLib.Error;
2196         [CCode (cheader_filename = "libgda/libgda.h")]
2197         public static GLib.Type short_get_type ();
2198         [CCode (cheader_filename = "libgda/libgda.h")]
2199         public static GLib.Quark sql_error_quark ();
2200         [CCode (cheader_filename = "libgda/libgda.h")]
2201         public static unowned string sql_identifier_add_quotes (string str);
2202         [CCode (cheader_filename = "libgda/libgda.h")]
2203         public static bool sql_identifier_needs_quotes (string str);
2204         [CCode (cheader_filename = "libgda/libgda.h")]
2205         public static unowned string sql_identifier_quote (string id, Gda.Connection cnc, Gda.ServerProvider prov, bool meta_store_convention, bool force_quotes);
2206         [CCode (cheader_filename = "libgda/libgda.h")]
2207         public static unowned string sql_identifier_remove_quotes (string str);
2208         [CCode (cheader_filename = "libgda/libgda.h")]
2209         public static unowned string sql_identifier_split (string id);
2210         [CCode (cheader_filename = "libgda/libgda.h")]
2211         public static unowned string sql_value_stringify (GLib.Value value);
2212         [CCode (cheader_filename = "libgda/libgda.h")]
2213         public static unowned Gda.Binary string_to_binary (string str);
2214         [CCode (cheader_filename = "libgda/libgda.h")]
2215         public static unowned Gda.Blob string_to_blob (string str);
2216         [CCode (cheader_filename = "libgda/libgda.h")]
2217         public static unowned string text_to_alphanum (string text);
2218         [CCode (cheader_filename = "libgda/libgda.h")]
2219         public static bool update_row_in_table (Gda.Connection cnc, string table, string condition_column_name, GLib.Value condition_value) throws GLib.Error;
2220         [CCode (cheader_filename = "libgda/libgda.h")]
2221         public static bool update_row_in_table_v (Gda.Connection cnc, string table, string condition_column_name, GLib.Value condition_value, GLib.SList col_names, GLib.SList values) throws GLib.Error;
2222         [CCode (cheader_filename = "libgda/libgda.h")]
2223         public static GLib.Type ushort_get_type ();
2224         [CCode (cheader_filename = "libgda/libgda.h")]
2225         public static bool utility_check_data_model (Gda.DataModel model, int nbcols);
2226         [CCode (cheader_filename = "libgda/libgda.h")]
2227         public static bool utility_data_model_dump_data_to_xml (Gda.DataModel model, Xml.Node parent, int cols, int nb_cols, int rows, int nb_rows, bool use_col_ids);
2228         [CCode (cheader_filename = "libgda/libgda.h")]
2229         public static unowned string utility_data_model_find_column_description (Gda.DataSelect model, string field_name);
2230         [CCode (cheader_filename = "libgda/libgda.h")]
2231         public static bool utility_holder_load_attributes (Gda.Holder holder, Xml.Node node, GLib.SList sources) throws GLib.Error;
2232         [CCode (cheader_filename = "libgda/libgda.h")]
2233         public static int value_compare (GLib.Value value1, GLib.Value value2);
2234         [CCode (cheader_filename = "libgda/libgda.h")]
2235         public static GLib.Value value_copy (GLib.Value value);
2236         [CCode (cheader_filename = "libgda/libgda.h")]
2237         public static int value_differ (GLib.Value value1, GLib.Value value2);
2238         [CCode (cheader_filename = "libgda/libgda.h")]
2239         public static void value_free (GLib.Value value);
2240         [CCode (cheader_filename = "libgda/libgda.h")]
2241         public static unowned Gda.Binary value_get_binary (GLib.Value value);
2242         [CCode (cheader_filename = "libgda/libgda.h")]
2243         public static unowned Gda.Blob value_get_blob (GLib.Value value);
2244         [CCode (cheader_filename = "libgda/libgda.h")]
2245         public static unowned Gda.GeometricPoint value_get_geometric_point (GLib.Value value);
2246         [CCode (cheader_filename = "libgda/libgda.h")]
2247         public static unowned Gda.ValueList value_get_list (GLib.Value value);
2248         [CCode (cheader_filename = "libgda/libgda.h")]
2249         public static unowned Gda.Numeric value_get_numeric (GLib.Value value);
2250         [CCode (cheader_filename = "libgda/libgda.h")]
2251         public static short value_get_short (GLib.Value value);
2252         [CCode (cheader_filename = "libgda/libgda.h")]
2253         public static unowned Gda.Time value_get_time (GLib.Value value);
2254         [CCode (cheader_filename = "libgda/libgda.h")]
2255         public static unowned Gda.Timestamp value_get_timestamp (GLib.Value value);
2256         [CCode (cheader_filename = "libgda/libgda.h")]
2257         public static ushort value_get_ushort (GLib.Value value);
2258         [CCode (cheader_filename = "libgda/libgda.h")]
2259         public static bool value_is_null (GLib.Value value);
2260         [CCode (cheader_filename = "libgda/libgda.h")]
2261         public static bool value_is_number (GLib.Value value);
2262         [CCode (cheader_filename = "libgda/libgda.h")]
2263         public static GLib.Value value_new (GLib.Type type);
2264         [CCode (cheader_filename = "libgda/libgda.h")]
2265         public static GLib.Value value_new_binary (uchar[] val, long size);
2266         [CCode (cheader_filename = "libgda/libgda.h")]
2267         public static GLib.Value value_new_blob (uchar[] val, long size);
2268         [CCode (cheader_filename = "libgda/libgda.h")]
2269         public static GLib.Value value_new_blob_from_file (string filename);
2270         [CCode (cheader_filename = "libgda/libgda.h")]
2271         public static GLib.Value value_new_from_string (string as_string, GLib.Type type);
2272         [CCode (cheader_filename = "libgda/libgda.h")]
2273         public static GLib.Value value_new_from_xml (Xml.Node node);
2274         [CCode (cheader_filename = "libgda/libgda.h")]
2275         public static GLib.Value value_new_timestamp_from_timet (ulong val);
2276         [CCode (cheader_filename = "libgda/libgda.h")]
2277         public static void value_reset_with_type (GLib.Value value, GLib.Type type);
2278         [CCode (cheader_filename = "libgda/libgda.h")]
2279         public static void value_set_binary (GLib.Value value, Gda.Binary binary);
2280         [CCode (cheader_filename = "libgda/libgda.h")]
2281         public static void value_set_blob (GLib.Value value, Gda.Blob blob);
2282         [CCode (cheader_filename = "libgda/libgda.h")]
2283         public static bool value_set_from_string (GLib.Value value, string as_string, GLib.Type type);
2284         [CCode (cheader_filename = "libgda/libgda.h")]
2285         public static bool value_set_from_value (GLib.Value value, GLib.Value from);
2286         [CCode (cheader_filename = "libgda/libgda.h")]
2287         public static void value_set_geometric_point (GLib.Value value, Gda.GeometricPoint val);
2288         [CCode (cheader_filename = "libgda/libgda.h")]
2289         public static void value_set_list (GLib.Value value, Gda.ValueList val);
2290         [CCode (cheader_filename = "libgda/libgda.h")]
2291         public static void value_set_null (GLib.Value value);
2292         [CCode (cheader_filename = "libgda/libgda.h")]
2293         public static void value_set_numeric (GLib.Value value, Gda.Numeric val);
2294         [CCode (cheader_filename = "libgda/libgda.h")]
2295         public static void value_set_short (GLib.Value value, short val);
2296         [CCode (cheader_filename = "libgda/libgda.h")]
2297         public static void value_set_time (GLib.Value value, Gda.Time val);
2298         [CCode (cheader_filename = "libgda/libgda.h")]
2299         public static void value_set_timestamp (GLib.Value value, Gda.Timestamp val);
2300         [CCode (cheader_filename = "libgda/libgda.h")]
2301         public static void value_set_ushort (GLib.Value value, ushort val);
2302         [CCode (cheader_filename = "libgda/libgda.h")]
2303         public static unowned string value_stringify (GLib.Value value);
2304         [CCode (cheader_filename = "libgda/libgda.h")]
2305         public static void value_take_binary (GLib.Value value, Gda.Binary binary);
2306         [CCode (cheader_filename = "libgda/libgda.h")]
2307         public static void value_take_blob (GLib.Value value, Gda.Blob blob);
2308         [CCode (cheader_filename = "libgda/libgda.h")]
2309         public static unowned Xml.Node value_to_xml (GLib.Value value);