src/Builder4/config1.builder
[app.Builder.js] / src / vapi / libgda-5.0.vapi
1 /* libgda-5.0.vapi generated by vapigen-0.16, do not modify. */
2
3 [CCode (cprefix = "Gda", gir_namespace = "Gda", gir_version = "5.0", lower_case_cprefix = "gda_")]
4 namespace Gda {
5         [CCode (cheader_filename = "libgda/libgda.h")]
6         [Compact]
7         public class AttributesManager {
8                 public void clear (void* ptr);
9                 public void copy (void* from, Gda.AttributesManager to_mgr, void* to);
10                 public void free ();
11                 public GLib.Value @get (void* ptr, string att_name);
12                 public void @set (void* ptr, string att_name, GLib.Value value);
13                 public void set_full (void* ptr, string att_name, GLib.Value value, GLib.DestroyNotify destroy);
14         }
15         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_batch_get_type ()")]
16         public class Batch : GLib.Object {
17                 [CCode (has_construct_function = false)]
18                 public Batch ();
19                 public void add_statement (Gda.Statement stmt);
20                 public Gda.Batch copy ();
21                 public static GLib.Quark error_quark ();
22                 public bool get_parameters (out Gda.Set out_params) throws GLib.Error;
23                 public unowned GLib.SList<Gda.Statement> get_statements ();
24                 public void remove_statement (Gda.Statement stmt);
25                 public string serialize ();
26                 public virtual signal void changed (GLib.Object changed_stmt);
27         }
28         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_binary_get_type ()")]
29         [Compact]
30         public class Binary {
31                 public long binary_length;
32                 public uint8 data;
33                 public static void* copy (void* boxed);
34                 public static void free (owned void* boxed);
35                 public string to_string (uint maxlen);
36         }
37         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_blob_get_type ()")]
38         [Compact]
39         public class Blob {
40                 public weak Gda.Binary data;
41                 public weak Gda.BlobOp op;
42                 public static void* copy (void* boxed);
43                 public static void free (owned void* boxed);
44                 public void set_op (Gda.BlobOp? op);
45                 public string to_string (uint maxlen);
46         }
47         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_blob_op_get_type ()")]
48         public abstract class BlobOp : GLib.Object {
49                 public void* _gda_reserved1;
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", type_id = "gda_column_get_type ()")]
59         public class Column : GLib.Object {
60                 [CCode (has_construct_function = false)]
61                 public Column ();
62                 public 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", type_id = "gda_config_get_type ()")]
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 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 Gda.ProviderInfo get_provider_info (string provider_name);
101                 public static Gda.DataModel list_dsn ();
102                 public static 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", type_id = "gda_connection_get_type ()")]
114         public class Connection : GLib.Object, Gda.Lockable {
115                 [CCode (has_construct_function = false)]
116                 protected Connection ();
117                 public void add_event (owned Gda.ConnectionEvent event);
118                 public void add_prepared_statement (Gda.Statement gda_stmt, Gda.PStmt prepared_stmt);
119                 public bool add_savepoint (string? name) throws GLib.Error;
120                 public bool async_cancel (uint task_id) throws GLib.Error;
121                 public GLib.Object async_fetch_result (uint task_id, out Gda.Set last_insert_row) throws GLib.Error;
122                 public uint async_statement_execute (Gda.Statement stmt, Gda.Set? @params, Gda.StatementModelUsage model_usage, [CCode (array_length = false)] GLib.Type[]? col_types, bool need_last_insert_row) throws GLib.Error;
123                 public GLib.SList<GLib.Object> batch_execute (Gda.Batch batch, Gda.Set? @params, Gda.StatementModelUsage model_usage) throws GLib.Error;
124                 public bool begin_transaction (string? name, Gda.TransactionIsolation level) throws GLib.Error;
125                 public void clear_events_list ();
126                 public void close ();
127                 public void close_no_warning ();
128                 public bool commit_transaction (string? name) throws GLib.Error;
129                 public Gda.ServerOperation create_operation (Gda.ServerOperationType type, Gda.Set? options) throws GLib.Error;
130                 public Gda.SqlParser create_parser ();
131                 public void del_prepared_statement (Gda.Statement gda_stmt);
132                 public bool delete_row_from_table (string table, string condition_column_name, GLib.Value condition_value) throws GLib.Error;
133                 public bool delete_savepoint (string? name) throws GLib.Error;
134                 public static GLib.Quark error_quark ();
135                 public int execute_non_select_command (string sql) throws GLib.Error;
136                 public Gda.DataModel execute_select_command (string sql) throws GLib.Error;
137                 [CCode (has_construct_function = false)]
138                 public Connection.from_dsn (string dsn, string? auth_string, Gda.ConnectionOptions options) throws GLib.Error;
139                 [CCode (has_construct_function = false)]
140                 public Connection.from_string (string? provider_name, string cnc_string, string? auth_string, Gda.ConnectionOptions options) throws GLib.Error;
141                 public unowned string get_authentication ();
142                 public unowned string get_cnc_string ();
143                 public unowned string get_dsn ();
144                 public unowned GLib.List<Gda.ConnectionEvent> get_events ();
145                 public unowned Gda.MetaStore get_meta_store ();
146                 public Gda.DataModel get_meta_store_data_v (Gda.ConnectionMetaType meta_type, GLib.List<Gda.Holder> filters) throws GLib.Error;
147                 public Gda.ConnectionOptions get_options ();
148                 public unowned Gda.PStmt get_prepared_statement (Gda.Statement gda_stmt);
149                 public unowned Gda.ServerProvider get_provider ();
150                 public unowned string get_provider_name ();
151                 public unowned Gda.TransactionStatus get_transaction_status ();
152                 public bool insert_row_into_table_v (string table, GLib.SList<string> col_names, GLib.SList<GLib.Value?> values) throws GLib.Error;
153                 public bool is_opened ();
154                 public bool open () throws GLib.Error;
155                 public static Gda.Connection open_from_dsn (string dsn, string? auth_string, Gda.ConnectionOptions options) throws GLib.Error;
156                 public static Gda.Connection open_from_string (string? provider_name, string cnc_string, string? auth_string, Gda.ConnectionOptions options) throws ConnectionError, ConfigError;
157                 public static Gda.Connection open_sqlite (string? directory, string filename, bool auto_unlink);
158                 public Gda.Statement parse_sql_string (string sql, out Gda.Set @params) throws GLib.Error;
159                 public bool perform_operation (Gda.ServerOperation op) throws GLib.Error;
160                 public Gda.ConnectionEvent point_available_event (Gda.ConnectionEventType type);
161                 public string quote_sql_identifier (string id);
162                 public GLib.SList<GLib.Object> repetitive_statement_execute (Gda.RepetitiveStatement rstmt, Gda.StatementModelUsage model_usage, [CCode (array_length = false)] GLib.Type[]? col_types, bool stop_on_error) throws GLib.Error;
163                 public bool rollback_savepoint (string? name) throws GLib.Error;
164                 public bool rollback_transaction (string? name) throws GLib.Error;
165                 public GLib.Object statement_execute (Gda.Statement stmt, Gda.Set? @params, Gda.StatementModelUsage model_usage, out Gda.Set last_insert_row) throws GLib.Error;
166                 public int statement_execute_non_select (Gda.Statement stmt, Gda.Set? @params, out Gda.Set last_insert_row) throws GLib.Error;
167                 public Gda.DataModel statement_execute_select (Gda.Statement stmt, Gda.Set? @params) throws GLib.Error;
168                 public Gda.DataModel statement_execute_select_full (Gda.Statement stmt, Gda.Set? @params, Gda.StatementModelUsage model_usage, [CCode (array_length = false)] GLib.Type[]? col_types) throws GLib.Error;
169                 public bool statement_prepare (Gda.Statement stmt) throws GLib.Error;
170                 public string statement_to_sql (Gda.Statement stmt, Gda.Set? @params, Gda.StatementSqlFlag flags, out GLib.SList<weak Gda.Holder> params_used) throws GLib.Error;
171                 public static void string_split (string string, string out_cnc_params, string out_provider, string out_username, string out_password);
172                 public bool supports_feature (Gda.ConnectionFeature feature);
173                 public bool update_meta_store (Gda.MetaContext? context) throws GLib.Error;
174                 public bool update_row_in_table_v (string table, string condition_column_name, GLib.Value condition_value, GLib.SList<string> col_names, GLib.SList<GLib.Value?> values) throws GLib.Error;
175                 public string value_to_sql_string (GLib.Value from);
176                 [NoAccessorMethod]
177                 public string auth_string { owned get; set; }
178                 [NoAccessorMethod]
179                 public string cnc_string { owned get; set; }
180                 [NoAccessorMethod]
181                 public string dsn { owned get; set; }
182                 [NoAccessorMethod]
183                 public int events_history_size { get; set; }
184                 [NoAccessorMethod]
185                 public bool execution_timer { get; set; }
186                 [NoAccessorMethod]
187                 public bool is_wrapper { get; construct; }
188                 [NoAccessorMethod]
189                 public Gda.MetaStore meta_store { owned get; set; }
190                 [NoAccessorMethod]
191                 public bool monitor_wrapped_in_mainloop { get; set; }
192                 [NoAccessorMethod]
193                 public Gda.ServerProvider provider { owned get; set; }
194                 [NoAccessorMethod]
195                 public void* thread_owner { get; set; }
196                 public virtual signal void conn_closed ();
197                 public virtual signal void conn_opened ();
198                 public virtual signal void conn_to_close ();
199                 public virtual signal void dsn_changed ();
200                 public virtual signal void error (Gda.ConnectionEvent error);
201                 public virtual signal void transaction_status_changed ();
202         }
203         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_connection_event_get_type ()")]
204         public class ConnectionEvent : GLib.Object {
205                 [CCode (has_construct_function = false)]
206                 protected ConnectionEvent ();
207                 public long get_code ();
208                 public unowned string get_description ();
209                 public Gda.ConnectionEventType get_event_type ();
210                 public Gda.ConnectionEventCode get_gda_code ();
211                 public unowned string get_source ();
212                 public unowned string get_sqlstate ();
213                 public void set_code (long code);
214                 public void set_description (string description);
215                 public void set_event_type (Gda.ConnectionEventType type);
216                 public void set_gda_code (Gda.ConnectionEventCode code);
217                 public void set_source (string source);
218                 public void set_sqlstate (string sqlstate);
219                 [NoAccessorMethod]
220                 public int type { get; set; }
221         }
222         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_access_wrapper_get_type ()")]
223         public class DataAccessWrapper : GLib.Object, Gda.DataModel {
224                 [CCode (has_construct_function = false)]
225                 protected DataAccessWrapper ();
226                 public static Gda.DataModel @new (Gda.DataModel model);
227                 public bool set_mapping ([CCode (array_length_cname = "mapping_size", array_length_pos = 1.1)] int[]? mapping);
228                 [NoAccessorMethod]
229                 public Gda.DataModel model { owned get; construct; }
230         }
231         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_comparator_get_type ()")]
232         public class DataComparator : GLib.Object {
233                 [CCode (has_construct_function = false, type = "GObject*")]
234                 public DataComparator (Gda.DataModel old_model, Gda.DataModel new_model);
235                 public bool compute_diff () throws GLib.Error;
236                 public static GLib.Quark error_quark ();
237                 public Gda.Diff get_diff (int pos);
238                 public int get_n_diffs ();
239                 public void set_key_columns ([CCode (array_length_cname = "nb_cols", array_length_pos = 1.1)] int[] col_numbers);
240                 [NoAccessorMethod]
241                 public Gda.DataModel new_model { owned get; set; }
242                 [NoAccessorMethod]
243                 public Gda.DataModel old_model { owned get; set; }
244                 public virtual signal bool diff_computed (void* diff);
245         }
246         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_array_get_type ()")]
247         public class DataModelArray : GLib.Object, Gda.DataModel {
248                 [CCode (has_construct_function = false)]
249                 protected DataModelArray ();
250                 public void clear ();
251                 public unowned Gda.Row get_row (int row) throws GLib.Error;
252                 public static Gda.DataModel @new (int cols);
253                 public static Gda.DataModel new_with_g_types_v (int cols, [CCode (array_length = false)] GLib.Type[] types);
254                 public void set_n_columns (int cols);
255                 [NoAccessorMethod]
256                 public uint n_columns { get; set; }
257                 [NoAccessorMethod]
258                 public bool read_only { get; set; }
259         }
260         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_dir_get_type ()")]
261         public class DataModelDir : GLib.Object, Gda.DataModel {
262                 [CCode (has_construct_function = false)]
263                 protected DataModelDir ();
264                 public void clean_errors ();
265                 public static Gda.DataModel @new (string basedir);
266                 [NoAccessorMethod]
267                 public string basedir { owned get; construct; }
268         }
269         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_dsn_list_get_type ()")]
270         public class DataModelDsnList : GLib.Object, Gda.DataModel {
271                 [CCode (has_construct_function = false)]
272                 protected DataModelDsnList ();
273         }
274         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_import_get_type ()")]
275         public class DataModelImport : GLib.Object, Gda.DataModel {
276                 [CCode (has_construct_function = false)]
277                 protected DataModelImport ();
278                 public void clean_errors ();
279                 public static Gda.DataModel new_file (string filename, bool random_access, Gda.Set? options);
280                 public static Gda.DataModel new_mem (string data, bool random_access, Gda.Set? options);
281                 public static Gda.DataModel new_xml_node ([CCode (type = "xmlNodePtr")] Xml.Node* node);
282                 [NoAccessorMethod]
283                 public string data_string { owned get; construct; }
284                 [NoAccessorMethod]
285                 public string filename { owned get; construct; }
286                 [NoAccessorMethod]
287                 public Gda.Set options { owned get; construct; }
288                 [NoAccessorMethod]
289                 public bool random_access { get; construct; }
290                 [NoAccessorMethod]
291                 public bool strict { get; set construct; }
292                 [NoAccessorMethod]
293                 public void* xml_node { get; construct; }
294         }
295         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_iter_get_type ()")]
296         public class DataModelIter : Gda.Set {
297                 [CCode (has_construct_function = false)]
298                 protected DataModelIter ();
299                 public static GLib.Quark error_quark ();
300                 public unowned Gda.Holder get_holder_for_field (int col);
301                 public int get_row ();
302                 public unowned GLib.Value? get_value_at (int col);
303                 public unowned GLib.Value? get_value_at_e (int col) throws GLib.Error;
304                 public unowned GLib.Value? get_value_for_field (string field_name);
305                 public void invalidate_contents ();
306                 public bool is_valid ();
307                 public bool move_next ();
308                 public bool move_prev ();
309                 public bool move_to_row (int row);
310                 public bool set_value_at (int col, GLib.Value value) throws GLib.Error;
311                 [NoAccessorMethod]
312                 public int current_row { get; set; }
313                 [NoAccessorMethod]
314                 public Gda.DataModel data_model { owned get; set construct; }
315                 [NoAccessorMethod]
316                 public Gda.DataModel forced_model { owned get; set; }
317                 [NoAccessorMethod]
318                 public bool update_model { get; set; }
319                 public virtual signal void end_of_data ();
320                 public virtual signal void row_changed (int row);
321         }
322         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_ldap_get_type ()")]
323         public class DataModelLdap : GLib.Object, Gda.DataModel {
324                 [CCode (has_construct_function = false)]
325                 protected DataModelLdap ();
326                 public static GLib.List<Gda.Column> compute_columns (Gda.Connection cnc, string? attributes);
327                 [Deprecated (since = "5.2")]
328                 public static Gda.DataModel @new (Gda.Connection cnc, string? base_dn, string? filter, string? attributes, Gda.LdapSearchScope scope);
329                 [CCode (has_construct_function = false)]
330                 public DataModelLdap.with_config (Gda.Connection cnc, string? base_dn, string? filter, string? attributes, Gda.LdapSearchScope scope);
331                 public string attributes { construct; }
332                 [NoAccessorMethod]
333                 public string @base { owned get; construct; }
334                 [NoAccessorMethod]
335                 public string filter { owned get; construct; }
336                 [NoAccessorMethod]
337                 public int scope { get; construct; }
338                 [NoAccessorMethod]
339                 public bool use_rdn { get; set; }
340         }
341         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_pivot_get_type ()")]
342         public class DataPivot : GLib.Object, Gda.DataModel {
343                 [CCode (has_construct_function = false)]
344                 protected DataPivot ();
345                 public bool add_data (Gda.DataPivotAggregate aggregate_type, string field, string? alias) throws GLib.Error;
346                 public bool add_field (Gda.DataPivotFieldType field_type, string field, string? alias) throws GLib.Error;
347                 public static GLib.Quark error_quark ();
348                 public static Gda.DataModel @new (Gda.DataModel? model);
349                 public bool populate () throws GLib.Error;
350                 [NoAccessorMethod]
351                 public Gda.DataModel model { owned get; set; }
352         }
353         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_proxy_get_type ()")]
354         public class DataProxy : GLib.Object, Gda.DataModel {
355                 [CCode (has_construct_function = false, type = "GObject*")]
356                 public DataProxy (Gda.DataModel model);
357                 public void alter_value_attributes (int proxy_row, int col, Gda.ValueAttribute alter_flags);
358                 public bool apply_all_changes () throws GLib.Error;
359                 public bool apply_row_changes (int proxy_row) throws GLib.Error;
360                 public bool cancel_all_changes ();
361                 public void cancel_row_changes (int proxy_row, int col);
362                 public void @delete (int proxy_row);
363                 public static GLib.Quark error_quark ();
364                 public unowned string get_filter_expr ();
365                 public int get_filtered_n_rows ();
366                 public int get_n_modified_rows ();
367                 public int get_n_new_rows ();
368                 public unowned Gda.DataModel get_proxied_model ();
369                 public int get_proxied_model_n_cols ();
370                 public int get_proxied_model_n_rows ();
371                 public int get_proxied_model_row (int proxy_row);
372                 public int get_sample_end ();
373                 public int get_sample_size ();
374                 public int get_sample_start ();
375                 public Gda.ValueAttribute get_value_attributes (int proxy_row, int col);
376                 public GLib.SList<weak GLib.Value?> get_values (int proxy_row, [CCode (array_length = false)] int[] cols_index, int n_cols);
377                 public bool has_changed ();
378                 public bool is_read_only ();
379                 public bool row_has_changed (int proxy_row);
380                 public bool row_is_deleted (int proxy_row);
381                 public bool row_is_inserted (int proxy_row);
382                 public bool set_filter_expr (string? filter_expr) throws GLib.Error;
383                 public bool set_ordering_column (int col) throws GLib.Error;
384                 public void set_sample_size (int sample_size);
385                 public void set_sample_start (int sample_start);
386                 public void undelete (int proxy_row);
387                 [CCode (has_construct_function = false)]
388                 public DataProxy.with_data_model (Gda.DataModel model);
389                 [NoAccessorMethod]
390                 public bool defer_sync { get; set; }
391                 [NoAccessorMethod]
392                 public Gda.DataModel model { owned get; set construct; }
393                 [NoAccessorMethod]
394                 public bool prepend_null_entry { get; set; }
395                 public int sample_size { get; set construct; }
396                 public virtual signal void filter_changed ();
397                 public virtual signal void row_changes_applied (int row, int proxied_row);
398                 public virtual signal void row_delete_changed (int row, bool to_be_deleted);
399                 public virtual signal void sample_changed (int sample_start, int sample_end);
400                 public virtual signal void sample_size_changed (int sample_size);
401                 public virtual signal GLib.Error validate_row_changes (int row, int proxied_row);
402         }
403         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_select_get_type ()")]
404         public abstract class DataSelect : GLib.Object, Gda.DataModel {
405                 public int advertized_nrows;
406                 public int nb_stored_rows;
407                 public weak Gda.PStmt prep_stmt;
408                 [CCode (has_construct_function = false)]
409                 protected DataSelect ();
410                 public bool compute_columns_attributes () throws GLib.Error;
411                 public bool compute_modification_statements () throws GLib.Error;
412                 public bool compute_modification_statements_ext (Gda.DataSelectConditionType cond_type) throws GLib.Error;
413                 public bool compute_row_selection_condition () throws GLib.Error;
414                 public static GLib.Quark error_quark ();
415                 [NoWrapper]
416                 public virtual bool fetch_at (Gda.Row prow, int rownum) throws GLib.Error;
417                 [NoWrapper]
418                 public virtual int fetch_nb_rows ();
419                 [NoWrapper]
420                 public virtual bool fetch_next (Gda.Row prow, int rownum) throws GLib.Error;
421                 [NoWrapper]
422                 public virtual bool fetch_prev (Gda.Row prow, int rownum) throws GLib.Error;
423                 [NoWrapper]
424                 public virtual bool fetch_random (Gda.Row prow, int rownum) throws GLib.Error;
425                 public unowned Gda.Connection get_connection ();
426                 public bool rerun () throws GLib.Error;
427                 public bool set_modification_statement (Gda.Statement mod_stmt) throws GLib.Error;
428                 public bool set_modification_statement_sql (string sql) throws GLib.Error;
429                 public bool set_row_selection_condition_sql (string sql_where) throws GLib.Error;
430                 [NoWrapper]
431                 public virtual bool store_all () throws GLib.Error;
432                 [NoAccessorMethod]
433                 public bool auto_reset { get; set; }
434                 public Gda.Connection connection { get; construct; }
435                 [NoAccessorMethod]
436                 public Gda.Statement delete_stmt { owned get; set; }
437                 [NoAccessorMethod]
438                 public Gda.Set exec_params { owned get; construct; }
439                 [NoAccessorMethod]
440                 public double execution_delay { get; set; }
441                 [NoAccessorMethod]
442                 public Gda.Statement insert_stmt { owned get; set; }
443                 [NoAccessorMethod]
444                 public uint model_usage { get; construct; }
445                 [NoAccessorMethod]
446                 public Gda.PStmt prepared_stmt { owned get; set; }
447                 [NoAccessorMethod]
448                 public Gda.Statement select_stmt { owned get; }
449                 [NoAccessorMethod]
450                 public bool store_all_rows { get; set; }
451                 [NoAccessorMethod]
452                 public Gda.Statement update_stmt { owned get; set; }
453         }
454         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_default_get_type ()")]
455         [Compact]
456         public class Default {
457                 public static string escape_string (string string);
458                 public static string unescape_string (string string);
459         }
460         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "geometricpoint", type_id = "gda_geometricpoint_get_type ()")]
461         [Compact]
462         public class GeometricPoint {
463                 public double x;
464                 public double y;
465                 public static void* copy (void* boxed);
466                 public static void free (void* boxed);
467         }
468         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_bin_get_type ()")]
469         public class HandlerBin : GLib.Object, Gda.DataHandler {
470                 [CCode (has_construct_function = false)]
471                 protected HandlerBin ();
472                 public static Gda.DataHandler @new ();
473         }
474         [CCode (cheader_filename = "libgda/libgda.h")]
475         [Compact]
476         public class HandlerBinPriv {
477         }
478         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_boolean_get_type ()")]
479         public class HandlerBoolean : GLib.Object, Gda.DataHandler {
480                 [CCode (has_construct_function = false)]
481                 protected HandlerBoolean ();
482                 public static Gda.DataHandler @new ();
483         }
484         [CCode (cheader_filename = "libgda/libgda.h")]
485         [Compact]
486         public class HandlerBooleanPriv {
487         }
488         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_numerical_get_type ()")]
489         public class HandlerNumerical : GLib.Object, Gda.DataHandler {
490                 [CCode (has_construct_function = false)]
491                 protected HandlerNumerical ();
492                 public static Gda.DataHandler @new ();
493         }
494         [CCode (cheader_filename = "libgda/libgda.h")]
495         [Compact]
496         public class HandlerNumericalPriv {
497         }
498         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_string_get_type ()")]
499         public class HandlerString : GLib.Object, Gda.DataHandler {
500                 [CCode (has_construct_function = false)]
501                 protected HandlerString ();
502                 public static Gda.DataHandler @new ();
503                 public static Gda.DataHandler new_with_provider (Gda.ServerProvider prov, Gda.Connection? cnc);
504         }
505         [CCode (cheader_filename = "libgda/libgda.h")]
506         [Compact]
507         public class HandlerStringPriv {
508         }
509         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_time_get_type ()")]
510         public class HandlerTime : GLib.Object, Gda.DataHandler {
511                 [CCode (has_construct_function = false)]
512                 protected HandlerTime ();
513                 public string get_format (GLib.Type type);
514                 public string get_no_locale_str_from_value (GLib.Value value);
515                 public static Gda.DataHandler @new ();
516                 public static Gda.DataHandler new_no_locale ();
517                 public void set_sql_spec (GLib.DateDMY first, GLib.DateDMY sec, GLib.DateDMY third, char separator, bool twodigits_years);
518                 public void set_str_spec (GLib.DateDMY first, GLib.DateDMY sec, GLib.DateDMY third, char separator, bool twodigits_years);
519         }
520         [CCode (cheader_filename = "libgda/libgda.h")]
521         [Compact]
522         public class HandlerTimePriv {
523         }
524         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_handler_type_get_type ()")]
525         public class HandlerType : GLib.Object, Gda.DataHandler {
526                 [CCode (has_construct_function = false)]
527                 protected HandlerType ();
528                 public static Gda.DataHandler @new ();
529         }
530         [CCode (cheader_filename = "libgda/libgda.h")]
531         [Compact]
532         public class HandlerTypePriv {
533         }
534         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_holder_get_type ()")]
535         public class Holder : GLib.Object, Gda.Lockable {
536                 [CCode (has_construct_function = false)]
537                 public Holder (GLib.Type type);
538                 [NoWrapper]
539                 public virtual void att_changed (string att_name, GLib.Value att_value);
540                 public Gda.Holder copy ();
541                 public static GLib.Quark error_quark ();
542                 public void force_invalid ();
543                 public void force_invalid_e (owned GLib.Error? error);
544                 public GLib.Value get_attribute (string attribute);
545                 public unowned Gda.Holder get_bind ();
546                 public GLib.Value get_default_value ();
547                 public GLib.Type get_g_type ();
548                 public unowned string get_id ();
549                 public bool get_not_null ();
550                 public unowned Gda.DataModel get_source_model (int col);
551                 public unowned GLib.Value? get_value ();
552                 public string get_value_str (Gda.DataHandler? dh);
553                 public bool is_valid ();
554                 public bool is_valid_e () throws GLib.Error;
555                 public void set_attribute (string attribute, GLib.Value value, GLib.DestroyNotify destroy);
556                 public bool set_bind (Gda.Holder bind_to) throws GLib.Error;
557                 public void set_default_value (GLib.Value value);
558                 public void set_not_null (bool not_null);
559                 public bool set_source_model (Gda.DataModel model, int col) throws GLib.Error;
560                 public bool set_value (GLib.Value? value) throws GLib.Error;
561                 public bool set_value_str (Gda.DataHandler dh, string value) throws GLib.Error;
562                 public bool set_value_to_default ();
563                 public GLib.Value take_static_value (GLib.Value value, bool value_changed) throws GLib.Error;
564                 public bool take_value (owned GLib.Value value) throws GLib.Error;
565                 public bool value_is_default ();
566                 [NoAccessorMethod]
567                 public string description { owned get; set; }
568                 [NoAccessorMethod]
569                 public Gda.Holder full_bind { owned get; set; }
570                 [NoAccessorMethod]
571                 public GLib.Type g_type { get; set construct; }
572                 [NoAccessorMethod]
573                 public string id { owned get; set; }
574                 [NoAccessorMethod]
575                 public string name { owned get; set; }
576                 public bool not_null { get; set; }
577                 [NoAccessorMethod]
578                 public Gda.Holder simple_bind { owned get; set; }
579                 [NoAccessorMethod]
580                 public int source_column { get; set; }
581                 [NoAccessorMethod]
582                 public Gda.DataModel source_model { owned get; set; }
583                 [NoAccessorMethod]
584                 public bool validate_changes { get; set; }
585                 public signal void attribute_changed (string att_name, GLib.Value att_value);
586                 public virtual signal void changed ();
587                 public virtual signal void source_changed ();
588                 public virtual signal GLib.Error validate_change (GLib.Value new_value);
589         }
590         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_meta_context_get_type ()")]
591         [Compact]
592         public class MetaContext {
593                 [CCode (array_length_cname = "size")]
594                 public weak string[] column_names;
595                 [CCode (array_length_cname = "size")]
596                 public weak GLib.Value[] column_values;
597                 public int size;
598                 public weak string table_name;
599                 [CCode (has_construct_function = false)]
600                 public MetaContext ();
601                 public void free ();
602                 public unowned string get_table ();
603                 public void set_column (string column, GLib.Value value, Gda.Connection? cnc);
604                 public void set_table (string table);
605         }
606         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_meta_store_get_type ()")]
607         public class MetaStore : GLib.Object {
608                 [CCode (has_construct_function = false)]
609                 public MetaStore (string? cnc_string);
610                 public Gda.DataModel create_modify_data_model (string table_name);
611                 public bool declare_foreign_key (Gda.MetaStruct? mstruct, string fk_name, string? catalog, string? schema, string table, string? ref_catalog, string? ref_schema, string ref_table, [CCode (array_length_cname = "nb_cols", array_length_pos = 8.5, array_length_type = "guint")] string[] colnames, [CCode (array_length_cname = "nb_cols", array_length_pos = 8.5, array_length_type = "guint")] string[] ref_colnames) throws GLib.Error;
612                 public static GLib.Quark error_quark ();
613                 [CCode (cname = "gda_meta_store_extract_v")]
614                 public Gda.DataModel extract (string select_sql, GLib.HashTable<string,GLib.Value?>? vars) throws GLib.Error;
615                 public bool get_attribute_value (string att_name, out string att_value) throws GLib.Error;
616                 public unowned Gda.Connection get_internal_connection ();
617                 public int get_version ();
618                 public bool modify_v (string table_name, Gda.DataModel? new_data, string? condition, [CCode (array_length_cname = "nvalues", array_length_pos = 3.5)] string[] value_names, [CCode (array_length_cname = "nvalues", array_length_pos = 3.5)] GLib.Value[] values) throws GLib.Error;
619                 public bool modify_with_context (Gda.MetaContext context, Gda.DataModel? new_data) throws GLib.Error;
620                 public bool schema_add_custom_object (string xml_description) throws GLib.Error;
621                 public GLib.SList<weak string> schema_get_all_tables ();
622                 public GLib.SList<weak string> schema_get_depend_tables (string table_name);
623                 public Gda.MetaStruct schema_get_structure () throws GLib.Error;
624                 public bool schema_remove_custom_object (string obj_name) throws GLib.Error;
625                 public bool set_attribute_value (string att_name, string? att_value) throws GLib.Error;
626                 public void set_identifiers_style (Gda.SqlIdentifierStyle style);
627                 public void set_reserved_keywords_func (Gda.SqlReservedKeywordsFunc? func);
628                 public static string sql_identifier_quote (string id, Gda.Connection cnc);
629                 public bool undeclare_foreign_key (Gda.MetaStruct? mstruct, string fk_name, string? catalog, string? schema, string table, string? ref_catalog, string? ref_schema, string ref_table) throws GLib.Error;
630                 [CCode (has_construct_function = false)]
631                 public MetaStore.with_file (string file_name);
632                 public string catalog { construct; }
633                 [NoAccessorMethod]
634                 public Gda.Connection cnc { owned get; construct; }
635                 public string cnc_string { construct; }
636                 public string schema { construct; }
637                 public signal void meta_changed (GLib.SList<Gda.MetaStoreChange> changes);
638                 public virtual signal void meta_reset ();
639                 public virtual signal GLib.Error suggest_update (Gda.MetaContext suggest);
640         }
641         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_meta_struct_get_type ()")]
642         public class MetaStruct : GLib.Object {
643                 [CCode (has_construct_function = false)]
644                 public MetaStruct (Gda.MetaStore store, Gda.MetaStructFeature features);
645                 public Gda.MetaDbObject complement (Gda.MetaDbObjectType type, GLib.Value? catalog, GLib.Value? schema, GLib.Value name) throws GLib.Error;
646                 public bool complement_all () throws GLib.Error;
647                 public bool complement_default () throws GLib.Error;
648                 public bool complement_depend (Gda.MetaDbObject dbo) throws GLib.Error;
649                 public bool complement_schema (GLib.Value? catalog, GLib.Value? schema) throws GLib.Error;
650                 public string dump_as_graph (Gda.MetaGraphInfo info) throws GLib.Error;
651                 public static GLib.Quark error_quark ();
652                 public GLib.SList<weak Gda.MetaDbObject?> get_all_db_objects ();
653                 public Gda.MetaDbObject get_db_object (GLib.Value? catalog, GLib.Value? schema, GLib.Value name);
654                 public bool sort_db_objects (Gda.MetaSortType sort_type) throws GLib.Error;
655                 [NoAccessorMethod]
656                 public uint features { get; construct; }
657                 [NoAccessorMethod]
658                 public Gda.MetaStore meta_store { owned get; construct; }
659         }
660         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_null_get_type ()")]
661         [Compact]
662         public class Null {
663         }
664         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_numeric_get_type ()")]
665         [Compact]
666         public class Numeric {
667                 public weak string number;
668                 public long precision;
669                 public long width;
670                 [CCode (has_construct_function = false)]
671                 public Numeric ();
672                 public Gda.Numeric copy ();
673                 public void free ();
674                 public double get_double ();
675                 public long get_precision ();
676                 public string? get_string ();
677                 public long get_width ();
678                 public void set_double (double number);
679                 public void set_from_string (string str);
680                 public void set_precision (long precision);
681                 public void set_width (long width);
682         }
683         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_pstmt_get_type ()")]
684         public abstract class PStmt : GLib.Object {
685                 public int ncols;
686                 public weak GLib.SList<string> param_ids;
687                 public weak string sql;
688                 public GLib.Type types;
689                 [CCode (has_construct_function = false)]
690                 protected PStmt ();
691                 public void copy_contents (Gda.PStmt dest);
692                 public unowned Gda.Statement get_gda_statement ();
693                 public void set_gda_statement (Gda.Statement stmt);
694         }
695         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_quark_list_get_type ()")]
696         [Compact]
697         public class QuarkList {
698                 [CCode (has_construct_function = false)]
699                 public QuarkList ();
700                 public void add_from_string (string string, bool cleanup);
701                 public void clear ();
702                 public Gda.QuarkList copy ();
703                 public unowned string find (string name);
704                 public void @foreach (GLib.HFunc func);
705                 public void free ();
706                 [CCode (has_construct_function = false)]
707                 public QuarkList.from_string (string string);
708                 public void protect_values ();
709                 public void remove (string name);
710         }
711         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_repetitive_statement_get_type ()")]
712         public class RepetitiveStatement : GLib.Object {
713                 [CCode (has_construct_function = false)]
714                 public RepetitiveStatement (Gda.Statement stmt);
715                 public bool append_set (Gda.Set values, bool make_copy);
716                 public GLib.SList<weak Gda.Set> get_all_sets ();
717                 public bool get_template_set (Gda.Set @set) throws GLib.Error;
718                 [NoAccessorMethod]
719                 public Gda.Statement statement { owned get; construct; }
720         }
721         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_row_get_type ()")]
722         public class Row : GLib.Object {
723                 [CCode (has_construct_function = false)]
724                 public Row (int count);
725                 public int get_length ();
726                 public GLib.Value? get_value (int num);
727                 public void invalidate_value (GLib.Value value);
728                 public void invalidate_value_e (GLib.Value value, owned GLib.Error? error);
729                 public bool value_is_valid (GLib.Value value);
730                 public bool value_is_valid_e (GLib.Value value) throws GLib.Error;
731                 [NoAccessorMethod]
732                 public int nb_values { set; }
733         }
734         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_server_operation_get_type ()")]
735         public class ServerOperation : GLib.Object {
736                 [CCode (has_construct_function = false)]
737                 public ServerOperation (Gda.ServerOperationType op_type, string xml_file);
738                 public uint add_item_to_sequence (string seq_path);
739                 public bool del_item_from_sequence (string item_path);
740                 public static GLib.Quark error_quark ();
741                 public string get_node_parent (string path);
742                 public string get_node_path_portion (string path);
743                 public Gda.ServerOperationNodeType get_node_type (string path, Gda.ServerOperationNodeStatus? status);
744                 public Gda.ServerOperationType get_op_type ();
745                 [CCode (array_length = false, array_null_terminated = true)]
746                 public string[] get_root_nodes ();
747                 [CCode (array_length = false, array_null_terminated = true)]
748                 public string[] get_sequence_item_names (string path);
749                 public uint get_sequence_max_size (string path);
750                 public uint get_sequence_min_size (string path);
751                 public unowned string get_sequence_name (string path);
752                 public uint get_sequence_size (string path);
753                 public string get_sql_identifier_at_path (Gda.Connection? cnc, Gda.ServerProvider? prov, string path);
754                 [CCode (cname = "gda_server_operation_get_value_at_path")]
755                 public unowned GLib.Value? get_value_at (string path);
756                 public bool is_valid (string? xml_file) throws GLib.Error;
757                 public bool load_data_from_xml ([CCode (type = "xmlNodePtr")] Xml.Node* node) throws GLib.Error;
758                 public static unowned string op_type_to_string (Gda.ServerOperationType type);
759                 public bool perform_create_database (string? provider) throws GLib.Error;
760                 public bool perform_create_table () throws GLib.Error;
761                 public bool perform_drop_database (string? provider) throws GLib.Error;
762                 public bool perform_drop_table () throws GLib.Error;
763                 public static Gda.ServerOperation prepare_create_database (string provider, string? db_name) throws GLib.Error;
764                 public static Gda.ServerOperation prepare_drop_database (string provider, string? db_name) throws GLib.Error;
765                 public static Gda.ServerOperation prepare_drop_table (Gda.Connection cnc, string table_name) throws GLib.Error;
766                 [NoWrapper]
767                 public virtual void seq_item_added (string seq_path, int item_index);
768                 [NoWrapper]
769                 public virtual void seq_item_remove (string seq_path, int item_index);
770                 [CCode (cname = "gda_server_operation_set_value_at_path")]
771                 public bool set_value_at (string? value, string path) throws GLib.Error;
772                 public static Gda.ServerOperationType string_to_op_type (string str);
773                 [NoAccessorMethod]
774                 public Gda.Connection connection { owned get; construct; }
775                 public int op_type { get; construct; }
776                 [NoAccessorMethod]
777                 public Gda.ServerProvider provider { owned get; construct; }
778                 public string spec_filename { construct; }
779                 public signal void sequence_item_added (string seq_path, int item_index);
780                 public signal void sequence_item_remove (string seq_path, int item_index);
781         }
782         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_server_provider_get_type ()")]
783         public abstract class ServerProvider : GLib.Object {
784                 [CCode (has_construct_function = false)]
785                 protected ServerProvider ();
786                 [NoWrapper]
787                 public virtual bool add_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
788                 [NoWrapper]
789                 public virtual bool begin_transaction (Gda.Connection cnc, string name, Gda.TransactionIsolation level) throws GLib.Error;
790                 [NoWrapper]
791                 public virtual bool cancel (Gda.Connection cnc, uint task_id) throws GLib.Error;
792                 [NoWrapper]
793                 public virtual bool close_connection (Gda.Connection cnc);
794                 [NoWrapper]
795                 public virtual bool commit_transaction (Gda.Connection cnc, string name) throws GLib.Error;
796                 public virtual Gda.ServerOperation create_operation (Gda.Connection? cnc, Gda.ServerOperationType type, Gda.Set? options) throws GLib.Error;
797                 public virtual Gda.SqlParser create_parser (Gda.Connection? cnc);
798                 [NoWrapper]
799                 public virtual bool delete_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
800                 public static GLib.Quark error_quark ();
801                 public virtual string escape_string (Gda.Connection? cnc, string str);
802                 public string find_file (string inst_dir, string filename);
803                 public unowned Gda.DataHandler get_data_handler_dbms (Gda.Connection? cnc, string for_type);
804                 public unowned Gda.DataHandler get_data_handler_default (Gda.Connection? cnc, GLib.Type type, string dbms_type);
805                 public unowned Gda.DataHandler get_data_handler_g_type (Gda.Connection? cnc, GLib.Type for_type);
806                 [NoWrapper]
807                 public virtual unowned string get_database (Gda.Connection cnc);
808                 [NoWrapper]
809                 public virtual unowned string get_def_dbms_type (Gda.Connection cnc, GLib.Type g_type);
810                 public unowned string get_default_dbms_type (Gda.Connection? cnc, GLib.Type type);
811                 public virtual unowned string get_name ();
812                 public virtual unowned string get_server_version (Gda.Connection cnc);
813                 public virtual unowned string get_version ();
814                 [NoWrapper]
815                 public virtual bool handle_async (Gda.Connection cnc) throws GLib.Error;
816                 public void handler_declare (Gda.DataHandler dh, Gda.Connection cnc, GLib.Type g_type, string dbms_type);
817                 public unowned Gda.DataHandler handler_find (Gda.Connection cnc, GLib.Type g_type, string dbms_type);
818                 [NoWrapper]
819                 public virtual string identifier_quote (Gda.Connection cnc, string id, bool for_meta_store, bool force_quotes);
820                 public unowned Gda.SqlParser internal_get_parser ();
821                 [NoWrapper]
822                 public virtual bool is_busy (Gda.Connection cnc) throws GLib.Error;
823                 public static string load_file_contents (string inst_dir, string data_dir, string filename);
824                 public bool perform_operation (Gda.Connection? cnc, Gda.ServerOperation op) throws GLib.Error;
825                 public bool perform_operation_default (Gda.Connection? cnc, Gda.ServerOperation op) throws GLib.Error;
826                 public virtual string render_operation (Gda.Connection? cnc, Gda.ServerOperation op) throws GLib.Error;
827                 [NoWrapper]
828                 public virtual bool rollback_savepoint (Gda.Connection cnc, string name) throws GLib.Error;
829                 [NoWrapper]
830                 public virtual bool rollback_transaction (Gda.Connection cnc, string name) throws GLib.Error;
831                 [NoWrapper]
832                 public virtual bool statement_prepare (Gda.Connection cnc, Gda.Statement stmt) throws GLib.Error;
833                 public GLib.Value string_to_value (Gda.Connection? cnc, string string, GLib.Type preferred_type, string? dbms_type);
834                 public virtual bool supports_feature (Gda.Connection? cnc, Gda.ConnectionFeature feature);
835                 public virtual bool supports_operation (Gda.Connection? cnc, Gda.ServerOperationType type, Gda.Set? options);
836                 public virtual string unescape_string (Gda.Connection? cnc, string str);
837                 public string value_to_sql_string (Gda.Connection? cnc, GLib.Value from);
838         }
839         [CCode (cheader_filename = "libgda/libgda.h")]
840         [Compact]
841         public class ServerProviderInfo {
842         }
843         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_set_get_type ()")]
844         public class Set : GLib.Object {
845                 public GLib.List<Gda.SetGroup> groups_list;
846                 public GLib.List<Gda.SetNode> nodes_list;
847                 public GLib.List<Gda.SetSource> sources_list;
848                 [CCode (has_construct_function = false)]
849                 public Set (GLib.SList<Gda.Holder> holders);
850                 public bool add_holder (Gda.Holder holder);
851                 public Gda.Set copy ();
852                 public static GLib.Quark error_quark ();
853                 [CCode (has_construct_function = false)]
854                 public Set.from_spec_node ([CCode (type = "xmlNodePtr")] Xml.Node* xml_spec) throws GLib.Error;
855                 [CCode (has_construct_function = false)]
856                 public Set.from_spec_string (string xml_spec) throws GLib.Error;
857                 public Gda.SetGroup get_group (Gda.Holder holder);
858                 public unowned Gda.Holder get_holder (string holder_id);
859                 public unowned GLib.Value? get_holder_value (string holder_id);
860                 public Gda.SetNode get_node (Gda.Holder holder);
861                 public unowned Gda.Holder get_nth_holder (int pos);
862                 public Gda.SetSource get_source (Gda.Holder holder);
863                 public Gda.SetSource get_source_for_model (Gda.DataModel model);
864                 public bool is_valid () throws GLib.Error;
865                 public void merge_with_set (Gda.Set set_to_merge);
866                 [CCode (has_construct_function = false)]
867                 public Set.read_only (GLib.SList<Gda.Holder> holders);
868                 public void remove_holder (Gda.Holder holder);
869                 public void replace_source_model (Gda.SetSource source, Gda.DataModel model);
870                 [NoAccessorMethod]
871                 public string description { owned get; set; }
872                 public void* holders { construct; }
873                 [NoAccessorMethod]
874                 public string id { owned get; set; }
875                 [NoAccessorMethod]
876                 public string name { owned get; set; }
877                 [NoAccessorMethod]
878                 public bool validate_changes { get; set; }
879                 public virtual signal void holder_attr_changed (Gda.Holder holder, string attr_name, GLib.Value attr_value);
880                 public virtual signal void holder_changed (Gda.Holder holder);
881                 public virtual signal void holder_type_set (Gda.Holder holder);
882                 public virtual signal void public_data_changed ();
883                 public virtual signal void source_model_changed (void* source);
884                 public virtual signal GLib.Error validate_holder_change (Gda.Holder holder, GLib.Value new_value);
885                 public virtual signal GLib.Error validate_set ();
886         }
887         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_short_get_type ()")]
888         public class Short {
889                 [CCode (has_construct_function = false)]
890                 protected Short ();
891         }
892         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_sql_builder_get_type ()")]
893         public class SqlBuilder : GLib.Object {
894                 [CCode (has_construct_function = false)]
895                 public SqlBuilder (Gda.SqlStatementType stmt_type);
896                 public Gda.SqlBuilderId add_case_v (Gda.SqlBuilderId test_expr, Gda.SqlBuilderId else_expr, [CCode (array_length_cname = "args_size", array_length_pos = 4.1)] Gda.SqlBuilderId[] when_array, [CCode (array_length_cname = "args_size", array_length_pos = 4.1)] Gda.SqlBuilderId[] then_array);
897                 public Gda.SqlBuilderId add_cond (Gda.SqlOperatorType op, Gda.SqlBuilderId op1, Gda.SqlBuilderId op2, Gda.SqlBuilderId op3);
898                 public Gda.SqlBuilderId add_expr_value (Gda.DataHandler? dh, GLib.Value? value);
899                 public Gda.SqlBuilderId add_field_id (string field_name, string? table_name);
900                 public void add_field_value_as_gvalue (string field_name, GLib.Value? value);
901                 public void add_field_value_id (Gda.SqlBuilderId field_id, Gda.SqlBuilderId value_id);
902                 public Gda.SqlBuilderId add_function_v (string func_name, [CCode (array_length_cname = "args_size", array_length_pos = 2.1)] Gda.SqlBuilderId[] args);
903                 public Gda.SqlBuilderId add_id (string str);
904                 public Gda.SqlBuilderId add_param (string param_name, GLib.Type type, bool nullok);
905                 public void compound_add_sub_select_from_builder (Gda.SqlBuilder subselect);
906                 public void compound_set_type (Gda.SqlStatementCompoundType compound_type);
907                 public static GLib.Quark error_quark ();
908                 public Gda.Statement get_statement () throws GLib.Error;
909                 public Gda.SqlBuilderId import_expression_from_builder (Gda.SqlBuilder query, Gda.SqlBuilderId expr_id);
910                 public void join_add_field (Gda.SqlBuilderId join_id, string field_name);
911                 public Gda.SqlBuilderId select_add_field (string field_name, string? table_name, string? alias);
912                 public Gda.SqlBuilderId select_add_target (string table_name, string? alias);
913                 public Gda.SqlBuilderId select_add_target_id (Gda.SqlBuilderId table_id, string? alias);
914                 public Gda.SqlBuilderId select_join_targets (Gda.SqlBuilderId left_target_id, Gda.SqlBuilderId right_target_id, SqlSelectJoinType join_type, Gda.SqlBuilderId join_expr);
915                 public void select_group_by (Gda.SqlBuilderId expr_id);
916                 public void select_order_by (Gda.SqlBuilderId expr_id, bool asc, string? collation_name);
917                 public void select_set_distinct (bool distinct, Gda.SqlBuilderId expr_id);
918                 public void select_set_having (Gda.SqlBuilderId cond_id);
919                 public void select_set_limit (Gda.SqlBuilderId limit_count_expr_id, Gda.SqlBuilderId limit_offset_expr_id);
920                 public void set_table (string table_name);
921                 public void set_where (Gda.SqlBuilderId cond_id);
922         }
923         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_sql_parser_get_type ()")]
924         public class SqlParser : GLib.Object, Gda.Lockable {
925                 [CCode (has_construct_function = false)]
926                 public SqlParser ();
927                 public static GLib.Quark error_quark ();
928                 public Gda.Batch parse_file_as_batch (string filename) throws GLib.Error;
929                 public Gda.Statement parse_string (string sql, out string remain) throws GLib.Error;
930                 public Gda.Batch parse_string_as_batch (string sql, out string remain) throws GLib.Error;
931                 public void set_overflow_error ();
932                 public void set_syntax_error ();
933                 [NoAccessorMethod]
934                 public int column_error { get; }
935                 [NoAccessorMethod]
936                 public int line_error { get; }
937                 [NoAccessorMethod]
938                 public int mode { get; set; }
939                 [NoAccessorMethod]
940                 public int tokenizer_flavour { get; set; }
941         }
942         [CCode (cheader_filename = "libgda/libgda.h")]
943         [Compact]
944         public class SqlStatement {
945                 public void compound_set_type (Gda.SqlStatementCompoundType type);
946                 public void compound_take_stmt (Gda.SqlStatement s);
947         }
948         [CCode (cheader_filename = "libgda/libgda.h")]
949         [Compact]
950         public class SqlStatementDelete {
951         }
952         [CCode (cheader_filename = "libgda/libgda.h")]
953         [Compact]
954         public class SqlStatementInsert {
955         }
956         [CCode (cheader_filename = "libgda/libgda.h")]
957         [Compact]
958         public class SqlStatementSelect {
959         }
960         [CCode (cheader_filename = "libgda/libgda.h")]
961         [Compact]
962         public class SqlStatementTransaction {
963         }
964         [CCode (cheader_filename = "libgda/libgda.h")]
965         [Compact]
966         public class SqlStatementUnknown {
967         }
968         [CCode (cheader_filename = "libgda/libgda.h")]
969         [Compact]
970         public class SqlStatementUpdate {
971         }
972         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_statement_get_type ()")]
973         public class Statement : GLib.Object {
974                 [CCode (has_construct_function = false)]
975                 public Statement ();
976                 public bool check_structure () throws GLib.Error;
977                 public bool check_validity (Gda.Connection? cnc) throws GLib.Error;
978                 public Gda.Statement copy ();
979                 public static GLib.Quark error_quark ();
980                 public bool get_parameters (out Gda.Set out_params) throws GLib.Error;
981                 public Gda.SqlStatementType get_statement_type ();
982                 public bool is_useless ();
983                 public bool normalize (Gda.Connection cnc) throws GLib.Error;
984                 public string serialize ();
985                 public string to_sql_extended (Gda.Connection? cnc, Gda.Set? @params, Gda.StatementSqlFlag flags, out GLib.SList<weak Gda.Holder> params_used) throws GLib.Error;
986                 public string to_sql_real (Gda.SqlRenderingContext context) throws GLib.Error;
987                 [NoAccessorMethod]
988                 public void* structure { get; set; }
989                 public virtual signal void checked (Gda.Connection cnc, bool checked);
990                 public virtual signal void reset ();
991         }
992         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_thread_wrapper_get_type ()")]
993         public class ThreadWrapper : GLib.Object {
994                 [CCode (has_construct_function = false)]
995                 public ThreadWrapper ();
996                 public bool cancel (uint id);
997                 public ulong connect_raw (void* instance, string sig_name, bool private_thread, bool private_job, Gda.ThreadWrapperCallback callback);
998                 public void disconnect (ulong id);
999                 public static GLib.Quark error_quark ();
1000                 public uint execute_void ([CCode (destroy_notify_pos = 2.1)] owned Gda.ThreadWrapperVoidFunc func, void* arg) throws GLib.Error;
1001                 public void* fetch_result (bool may_lock, uint exp_id) throws GLib.Error;
1002                 public unowned GLib.IOChannel get_io_channel ();
1003                 public int get_waiting_size ();
1004                 public void iterate (bool may_block);
1005                 public void steal_signal (ulong id);
1006                 public void unset_io_channel ();
1007         }
1008         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_time_get_type ()")]
1009         [Compact]
1010         public class Time {
1011                 public ulong fraction;
1012                 public ushort hour;
1013                 public ushort minute;
1014                 public ushort second;
1015                 public long timezone;
1016                 public static void* copy (void* boxed);
1017                 public static void free (void* boxed);
1018                 public bool valid ();
1019         }
1020         [CCode (cheader_filename = "libgda/libgda.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gda_timestamp_get_type ()")]
1021         [Compact]
1022         public class Timestamp {
1023                 public ushort day;
1024                 public ulong fraction;
1025                 public ushort hour;
1026                 public ushort minute;
1027                 public ushort month;
1028                 public ushort second;
1029                 public long timezone;
1030                 public short year;
1031                 public static void* copy (void* boxed);
1032                 public static void free (void* boxed);
1033                 public bool valid ();
1034         }
1035         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_transaction_status_get_type ()")]
1036         public class TransactionStatus : GLib.Object {
1037                 public GLib.List<Gda.TransactionStatusEvent> events;
1038                 public Gda.TransactionIsolation isolation_level;
1039                 public weak string name;
1040                 public Gda.TransactionStatusState state;
1041                 [CCode (has_construct_function = false)]
1042                 public TransactionStatus (string name);
1043                 public Gda.TransactionStatus find (string str, Gda.TransactionStatusEvent destev);
1044                 public Gda.TransactionStatus find_current (Gda.TransactionStatusEvent destev, bool unnamed_only);
1045                 public void free_events (Gda.TransactionStatusEvent event, bool free_after);
1046         }
1047         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_get_type ()")]
1048         public class Tree : GLib.Object {
1049                 [CCode (has_construct_function = false)]
1050                 public Tree ();
1051                 public void add_manager (Gda.TreeManager manager);
1052                 public void clean ();
1053                 public void dump (Gda.TreeNode? node, void* stream);
1054                 public static GLib.Quark error_quark ();
1055                 public unowned Gda.TreeNode get_node (string tree_path, bool use_names);
1056                 public unowned Gda.TreeManager get_node_manager (Gda.TreeNode node);
1057                 public string get_node_path (Gda.TreeNode node);
1058                 public GLib.SList<weak Gda.TreeNode> get_nodes_in_path (string? tree_path, bool use_names);
1059                 public void set_attribute (string attribute, GLib.Value value, GLib.DestroyNotify destroy);
1060                 public bool update_all () throws GLib.Error;
1061                 public bool update_children (Gda.TreeNode? node) throws GLib.Error;
1062                 public bool update_part (Gda.TreeNode node) throws GLib.Error;
1063                 [NoAccessorMethod]
1064                 public bool is_list { get; }
1065                 public virtual signal void node_changed (Gda.TreeNode node);
1066                 public virtual signal void node_deleted (string node_path);
1067                 public virtual signal void node_has_child_toggled (Gda.TreeNode node);
1068                 public virtual signal void node_inserted (Gda.TreeNode node);
1069         }
1070         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_manager_get_type ()")]
1071         public class TreeManager : GLib.Object {
1072                 [CCode (has_construct_function = false)]
1073                 protected TreeManager ();
1074                 public void add_manager (Gda.TreeManager sub);
1075                 public void add_new_node_attribute (string attribute, GLib.Value? value);
1076                 public Gda.TreeNode create_node (Gda.TreeNode? parent, string? name);
1077                 public static GLib.Quark error_quark ();
1078                 public unowned GLib.SList<Gda.TreeManager> get_managers ();
1079                 [NoAccessorMethod]
1080                 public void* func { get; set construct; }
1081                 [NoAccessorMethod]
1082                 public bool recursive { get; set construct; }
1083         }
1084         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_columns_get_type ()")]
1085         public class TreeMgrColumns : Gda.TreeManager {
1086                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1087                 public TreeMgrColumns (Gda.Connection cnc, string schema, string table_name);
1088                 [NoAccessorMethod]
1089                 public Gda.Connection connection { owned get; construct; }
1090                 [NoAccessorMethod]
1091                 public Gda.MetaStore meta_store { owned get; construct; }
1092                 public string schema { construct; }
1093                 public string table_name { construct; }
1094         }
1095         [CCode (cheader_filename = "libgda/libgda.h")]
1096         [Compact]
1097         public class TreeMgrColumnsPriv {
1098         }
1099         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_label_get_type ()")]
1100         public class TreeMgrLabel : Gda.TreeManager {
1101                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1102                 public TreeMgrLabel (string label);
1103                 public string label { construct; }
1104         }
1105         [CCode (cheader_filename = "libgda/libgda.h")]
1106         [Compact]
1107         public class TreeMgrLabelPriv {
1108         }
1109         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_ldap_get_type ()")]
1110         public class TreeMgrLdap : Gda.TreeManager {
1111                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1112                 public TreeMgrLdap (Gda.Connection cnc, string? dn);
1113                 [NoAccessorMethod]
1114                 public string dn { owned get; construct; }
1115         }
1116         [CCode (cheader_filename = "libgda/libgda.h")]
1117         [Compact]
1118         public class TreeMgrLdapPriv {
1119         }
1120         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_schemas_get_type ()")]
1121         public class TreeMgrSchemas : Gda.TreeManager {
1122                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1123                 public TreeMgrSchemas (Gda.Connection cnc);
1124                 [NoAccessorMethod]
1125                 public Gda.Connection connection { owned get; construct; }
1126                 [NoAccessorMethod]
1127                 public Gda.MetaStore meta_store { owned get; construct; }
1128         }
1129         [CCode (cheader_filename = "libgda/libgda.h")]
1130         [Compact]
1131         public class TreeMgrSchemasPriv {
1132         }
1133         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_select_get_type ()")]
1134         public class TreeMgrSelect : Gda.TreeManager {
1135                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1136                 public TreeMgrSelect (Gda.Connection cnc, Gda.Statement stmt, Gda.Set @params);
1137                 [NoAccessorMethod]
1138                 public Gda.Connection connection { owned get; construct; }
1139                 [NoAccessorMethod]
1140                 public Gda.Set @params { owned get; construct; }
1141                 [NoAccessorMethod]
1142                 public Gda.Statement statement { owned get; construct; }
1143         }
1144         [CCode (cheader_filename = "libgda/libgda.h")]
1145         [Compact]
1146         public class TreeMgrSelectPriv {
1147         }
1148         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_mgr_tables_get_type ()")]
1149         public class TreeMgrTables : Gda.TreeManager {
1150                 [CCode (has_construct_function = false, type = "GdaTreeManager*")]
1151                 public TreeMgrTables (Gda.Connection cnc, string? schema);
1152                 [NoAccessorMethod]
1153                 public Gda.Connection connection { owned get; construct; }
1154                 [NoAccessorMethod]
1155                 public Gda.MetaStore meta_store { owned get; construct; }
1156                 public string schema { construct; }
1157         }
1158         [CCode (cheader_filename = "libgda/libgda.h")]
1159         [Compact]
1160         public class TreeMgrTablesPriv {
1161         }
1162         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_tree_node_get_type ()")]
1163         public class TreeNode : GLib.Object {
1164                 [CCode (has_construct_function = false)]
1165                 public TreeNode (string? name);
1166                 [NoWrapper]
1167                 public virtual void dump_children (string prefix, GLib.StringBuilder in_string);
1168                 [NoWrapper]
1169                 public virtual string dump_header ();
1170                 public static GLib.Quark error_quark ();
1171                 public GLib.Value fetch_attribute (string attribute);
1172                 public unowned Gda.TreeNode get_child_index (int index);
1173                 public unowned Gda.TreeNode get_child_name (string name);
1174                 public GLib.SList<weak Gda.TreeNode> get_children ();
1175                 public GLib.Value get_node_attribute (string attribute);
1176                 public unowned Gda.TreeNode get_parent ();
1177                 public void set_node_attribute (string attribute, GLib.Value? value, GLib.DestroyNotify destroy);
1178                 [NoAccessorMethod]
1179                 public string name { owned get; set; }
1180                 public virtual signal void node_changed (Gda.TreeNode node);
1181                 public virtual signal void node_deleted (string relative_path);
1182                 public virtual signal void node_has_child_toggled (Gda.TreeNode node);
1183                 public virtual signal void node_inserted (Gda.TreeNode node);
1184         }
1185         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_ushort_get_type ()")]
1186         public class UShort {
1187                 [CCode (has_construct_function = false)]
1188                 protected UShort ();
1189         }
1190         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_xa_transaction_get_type ()")]
1191         public class XaTransaction : GLib.Object {
1192                 [CCode (has_construct_function = false)]
1193                 public XaTransaction (uint32 format, string global_transaction_id);
1194                 public bool begin () throws GLib.Error;
1195                 public bool commit (out GLib.SList<Gda.Connection> cnc_to_recover) throws GLib.Error;
1196                 public bool commit_recovered (out GLib.SList<Gda.Connection> cnc_to_recover) throws GLib.Error;
1197                 public static GLib.Quark error_quark ();
1198                 public bool register_connection (Gda.Connection cnc, string branch) throws GLib.Error;
1199                 public bool rollback () throws GLib.Error;
1200                 public void unregister_connection (Gda.Connection cnc);
1201                 [NoAccessorMethod]
1202                 public uint format_id { get; construct; }
1203                 [NoAccessorMethod]
1204                 public string transaction_id { owned get; construct; }
1205         }
1206         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_handler_get_type ()")]
1207         public interface DataHandler : GLib.Object {
1208                 public abstract bool accepts_g_type (GLib.Type type);
1209                 public static unowned Gda.DataHandler get_default (GLib.Type for_type);
1210                 public abstract unowned string get_descr ();
1211                 public abstract GLib.Value? get_sane_init_value (GLib.Type type);
1212                 public abstract string get_sql_from_value (GLib.Value? value);
1213                 public abstract string get_str_from_value (GLib.Value? value);
1214                 public abstract GLib.Value? get_value_from_sql (string? sql, GLib.Type type);
1215                 public abstract GLib.Value? get_value_from_str (string? str, GLib.Type type);
1216         }
1217         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_data_model_get_type ()")]
1218         public interface DataModel : GLib.Object {
1219                 public bool add_data_from_xml_node ([CCode (type = "xmlNodePtr")] Xml.Node* node) throws GLib.Error;
1220                 [CCode (vfunc_name = "i_append_row")]
1221                 public abstract int append_row () throws GLib.Error;
1222                 public Gda.DataModelArray array_copy_model () throws GLib.Error;
1223                 public Gda.DataModelArray array_copy_model_ext ([CCode (array_length_cname = "ncols", array_length_pos = 0.5)] int[] cols) throws GLib.Error;
1224                 [CCode (vfunc_name = "i_create_iter")]
1225                 public abstract Gda.DataModelIter create_iter ();
1226                 [CCode (vfunc_name = "i_describe_column")]
1227                 public abstract unowned Gda.Column describe_column (int col);
1228                 public void dump (void* to_stream);
1229                 public string dump_as_string ();
1230                 public static GLib.Quark error_quark ();
1231                 public bool export_to_file (Gda.DataModelIOFormat format, string file, [CCode (array_length_cname = "nb_cols", array_length_pos = 3.5)] int[]? cols, [CCode (array_length_cname = "nb_rows", array_length_pos = 4.5)] int[]? rows, Gda.Set options) throws GLib.Error;
1232                 public string export_to_string (Gda.DataModelIOFormat format, [CCode (array_length_cname = "nb_cols", array_length_pos = 2.5)] int[]? cols, [CCode (array_length_cname = "nb_rows", array_length_pos = 3.5)] int[]? rows, Gda.Set options);
1233                 public void freeze ();
1234                 [CCode (vfunc_name = "i_get_access_flags")]
1235                 public abstract Gda.DataModelAccessFlags get_access_flags ();
1236                 [CCode (vfunc_name = "i_get_attributes_at")]
1237                 public abstract Gda.ValueAttribute get_attributes_at (int col, int row);
1238                 public int get_column_index (string name);
1239                 public unowned string get_column_name (int col);
1240                 public unowned string get_column_title (int col);
1241                 [CCode (array_length = false, array_null_terminated = true, vfunc_name = "i_get_exceptions")]
1242                 public abstract unowned GLib.Error[] get_exceptions ();
1243                 [CCode (vfunc_name = "i_get_n_columns")]
1244                 public abstract int get_n_columns ();
1245                 [CCode (vfunc_name = "i_get_n_rows")]
1246                 public abstract int get_n_rows ();
1247                 [CCode (vfunc_name = "i_get_notify")]
1248                 public abstract bool get_notify ();
1249                 public unowned GLib.Value? get_typed_value_at (int col, int row, GLib.Type expected_type, bool nullok) throws GLib.Error;
1250                 [CCode (vfunc_name = "i_get_value_at")]
1251                 public abstract unowned GLib.Value? get_value_at (int col, int row) throws GLib.Error;
1252                 public bool import_from_file (string file, GLib.HashTable<int,int>? cols_trans, Gda.Set options) throws GLib.Error;
1253                 public bool import_from_model (Gda.DataModel from, bool overwrite, GLib.HashTable<int,int>? cols_trans) throws GLib.Error;
1254                 public bool import_from_string (string string, GLib.HashTable<int,int>? cols_trans, Gda.Set options) throws GLib.Error;
1255                 [CCode (vfunc_name = "i_iter_at_row")]
1256                 [Deprecated (since = "5.2")]
1257                 public abstract bool iter_at_row (Gda.DataModelIter iter, int row);
1258                 [CCode (vfunc_name = "i_iter_next")]
1259                 [Deprecated (since = "5.2")]
1260                 public abstract bool iter_next (Gda.DataModelIter iter);
1261                 [CCode (vfunc_name = "i_iter_prev")]
1262                 [Deprecated (since = "5.2")]
1263                 public abstract bool iter_prev (Gda.DataModelIter iter);
1264                 [CCode (vfunc_name = "i_iter_set_value")]
1265                 [Deprecated (since = "5.2")]
1266                 public abstract bool iter_set_value (Gda.DataModelIter iter, int col, GLib.Value value) throws GLib.Error;
1267                 [CCode (vfunc_name = "i_remove_row")]
1268                 public abstract bool remove_row (int row) throws GLib.Error;
1269                 [CCode (vfunc_name = "i_send_hint")]
1270                 public abstract void send_hint (Gda.DataModelHint hint, GLib.Value? hint_value);
1271                 public void set_column_name (int col, string name);
1272                 public void set_column_title (int col, string title);
1273                 [CCode (vfunc_name = "i_set_notify")]
1274                 [Deprecated (since = "5.2")]
1275                 public abstract void set_notify (bool do_notify_changes);
1276                 [CCode (vfunc_name = "i_set_value_at")]
1277                 public abstract bool set_value_at (int col, int row, GLib.Value value) throws GLib.Error;
1278                 public void thaw ();
1279                 public virtual signal void access_changed ();
1280                 public virtual signal void changed ();
1281                 [HasEmitter]
1282                 public virtual signal void reset ();
1283                 [HasEmitter]
1284                 public virtual signal void row_inserted (int row);
1285                 [HasEmitter]
1286                 public virtual signal void row_removed (int row);
1287                 [HasEmitter]
1288                 public virtual signal void row_updated (int row);
1289         }
1290         [CCode (cheader_filename = "libgda/libgda.h", type_id = "gda_lockable_get_type ()")]
1291         public interface Lockable : GLib.Object {
1292                 [NoWrapper]
1293                 public abstract void i_lock ();
1294                 [NoWrapper]
1295                 public abstract bool i_trylock ();
1296                 [NoWrapper]
1297                 public abstract void i_unlock ();
1298                 public void @lock ();
1299                 public bool trylock ();
1300                 public void unlock ();
1301         }
1302         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1303         public struct DataMetaWrapper {
1304                 public weak GLib.Object object;
1305         }
1306         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1307         public struct DataMetaWrapperClass {
1308                 public weak GLib.ObjectClass parent_class;
1309         }
1310         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1311         public struct Diff {
1312                 public Gda.DiffType type;
1313                 public int old_row;
1314                 public int new_row;
1315                 public weak GLib.HashTable<void*,void*> values;
1316         }
1317         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1318         public struct DsnInfo {
1319                 public weak string name;
1320                 public weak string provider;
1321                 public weak string description;
1322                 public weak string cnc_string;
1323                 public weak string auth_string;
1324                 public bool is_system;
1325         }
1326         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1327         public struct MetaDbObject {
1328                 public Gda.MetaDbObjectType obj_type;
1329                 public bool outdated;
1330                 public weak string obj_catalog;
1331                 public weak string obj_schema;
1332                 public weak string obj_name;
1333                 public weak string obj_short_name;
1334                 public weak string obj_full_name;
1335                 public weak string obj_owner;
1336                 public GLib.List<Gda.MetaDbObject> depend_list;
1337                 [CCode (cname = "extra.meta_table")]
1338                 public Gda.MetaTable extra_meta_table;
1339                 [CCode (cname = "extra.meta_view")]
1340                 public Gda.MetaView extra_meta_view;
1341         }
1342         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1343         public struct MetaStoreChange {
1344                 public Gda.MetaStoreChangeType c_type;
1345                 public weak string table_name;
1346         }
1347         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1348         public struct MetaTable {
1349                 public GLib.List<Gda.MetaTableColumn> columns;
1350                 public int pk_cols_array;
1351                 public int pk_cols_nb;
1352                 public GLib.List<Gda.MetaTableForeignKey> reverse_fk_list;
1353                 public GLib.List<Gda.MetaTableForeignKey> fk_list;
1354         }
1355         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1356         public struct MetaTableColumn {
1357                 public weak string column_name;
1358                 public weak string column_type;
1359                 public GLib.Type gtype;
1360                 public bool pkey;
1361                 public bool nullok;
1362                 public weak string default_value;
1363                 public void foreach_attribute (Gda.AttributesManagerFunc func);
1364                 public GLib.Value get_attribute (string attribute);
1365                 public void set_attribute (string attribute, GLib.Value? value, GLib.DestroyNotify? destroy);
1366         }
1367         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1368         public struct MetaTableForeignKey {
1369                 public Gda.MetaDbObject meta_table;
1370                 public Gda.MetaDbObject depend_on;
1371                 public int cols_nb;
1372                 public int fk_cols_array;
1373                 public weak string fk_names_array;
1374                 public int ref_pk_cols_array;
1375                 public weak string ref_pk_names_array;
1376                 public weak string fk_name;
1377         }
1378         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1379         public struct MetaView {
1380                 public Gda.MetaTable table;
1381                 public weak string view_def;
1382                 public bool is_updatable;
1383         }
1384         [CCode (cheader_filename = "libgda/libgda.h")]
1385         public struct Mutex : GLib.RecMutex {
1386                 public static void free (Gda.Mutex mutex);
1387                 public static void @lock (Gda.Mutex mutex);
1388                 public static bool trylock (Gda.Mutex mutex);
1389                 public static void unlock (Gda.Mutex mutex);
1390         }
1391         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1392         public struct ProviderInfo {
1393                 public weak string id;
1394                 public weak string location;
1395                 public weak string description;
1396                 public weak Gda.Set dsn_params;
1397                 public weak Gda.Set auth_params;
1398         }
1399         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1400         public struct ServerProviderHandlerInfo {
1401                 public weak Gda.Connection cnc;
1402                 public GLib.Type g_type;
1403                 public weak string dbms_type;
1404         }
1405         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1406         public struct SetGroup {
1407                 public GLib.List<Gda.SetNode> nodes;
1408                 public Gda.SetSource nodes_source;
1409         }
1410         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1411         public struct SetNode {
1412                 public weak Gda.Holder holder;
1413                 public weak Gda.DataModel source_model;
1414                 public int source_column;
1415         }
1416         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1417         public struct SetSource {
1418                 public weak Gda.DataModel data_model;
1419                 public GLib.List<Gda.SetNode> nodes;
1420         }
1421         [CCode (cheader_filename = "libgda/libgda.h")]
1422         [SimpleType]
1423         public struct SqlBuilderId : uint {
1424         }
1425         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1426         public struct SqlRenderingContext {
1427                 public Gda.StatementSqlFlag flags;
1428                 public weak Gda.Set @params;
1429                 public GLib.List<Gda.Holder> params_used;
1430                 public weak Gda.ServerProvider provider;
1431                 public weak Gda.Connection cnc;
1432                 public weak Gda.SqlRenderingValue render_value;
1433         }
1434         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1435         public struct ThreadNotification {
1436                 public Gda.ThreadNotificationType type;
1437                 public uint job_id;
1438         }
1439         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1440         public struct TransactionStatusEvent {
1441                 public weak Gda.TransactionStatus trans;
1442                 public Gda.TransactionStatusEventType type;
1443                 public weak Gda.ConnectionEvent conn_event;
1444                 [CCode (cname = "pl.svp_name")]
1445                 public weak string pl_svp_name;
1446                 [CCode (cname = "pl.sql")]
1447                 public weak string pl_sql;
1448                 [CCode (cname = "pl.sub_trans")]
1449                 public weak Gda.TransactionStatus pl_sub_trans;
1450         }
1451         [CCode (cheader_filename = "libgda/libgda.h", has_type_id = false)]
1452         public struct XaTransactionId {
1453                 public uint32 format;
1454                 public ushort gtrid_length;
1455                 public ushort bqual_length;
1456                 [CCode (array_length = false, array_null_terminated = true)]
1457                 public weak char[] data;
1458                 public string to_string ();
1459         }
1460         [CCode (cheader_filename = "libgda/libgda.h", cname = "_GdaServerOperationNode", has_type_id = false)]
1461         public struct _ServerOperationNode {
1462                 public Gda.ServerOperationNodeType type;
1463                 public Gda.ServerOperationNodeStatus status;
1464                 public weak Gda.Set plist;
1465                 public weak Gda.DataModel model;
1466                 public weak Gda.Column column;
1467                 public weak Gda.Holder param;
1468         }
1469         [CCode (cheader_filename = "libgda/libgda.h", cname = "_GdaSqlParserIface", has_type_id = false)]
1470         public struct _SqlParserIface {
1471                 public weak Gda.SqlParser parser;
1472                 public weak Gda.SqlStatement parsed_statement;
1473         }
1474         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_BATCH_CONFLICTING_PARAMETER_")]
1475         public errordomain BatchError {
1476                 [CCode (cname = "GDA_BATCH_CONFLICTING_PARAMETER_ERROR")]
1477                 BATCH_CONFLICTING_PARAMETER_ERROR
1478         }
1479         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONFIG_")]
1480         public errordomain ConfigError {
1481                 DSN_NOT_FOUND_ERROR,
1482                 PERMISSION_ERROR,
1483                 PROVIDER_NOT_FOUND_ERROR,
1484                 PROVIDER_CREATION_ERROR
1485         }
1486         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_")]
1487         public errordomain ConnectionError {
1488                 DSN_NOT_FOUND_ERROR,
1489                 PROVIDER_NOT_FOUND_ERROR,
1490                 PROVIDER_ERROR,
1491                 NO_CNC_SPEC_ERROR,
1492                 NO_PROVIDER_SPEC_ERROR,
1493                 OPEN_ERROR,
1494                 STATEMENT_TYPE_ERROR,
1495                 CANT_LOCK_ERROR,
1496                 TASK_NOT_FOUND_ERROR,
1497                 UNSUPPORTED_THREADS_ERROR,
1498                 CLOSED_ERROR,
1499                 META_DATA_CONTEXT_ERROR
1500         }
1501         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_EVENT_CODE_")]
1502         public enum ConnectionEventCode {
1503                 CONSTRAINT_VIOLATION,
1504                 RESTRICT_VIOLATION,
1505                 NOT_NULL_VIOLATION,
1506                 FOREIGN_KEY_VIOLATION,
1507                 UNIQUE_VIOLATION,
1508                 CHECK_VIOLATION,
1509                 INSUFFICIENT_PRIVILEGES,
1510                 UNDEFINED_COLUMN,
1511                 UNDEFINED_FUNCTION,
1512                 UNDEFINED_TABLE,
1513                 DUPLICATE_COLUMN,
1514                 DUPLICATE_DATABASE,
1515                 DUPLICATE_FUNCTION,
1516                 DUPLICATE_SCHEMA,
1517                 DUPLICATE_TABLE,
1518                 DUPLICATE_ALIAS,
1519                 DUPLICATE_OBJECT,
1520                 SYNTAX_ERROR,
1521                 UNKNOWN
1522         }
1523         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_EVENT_")]
1524         public enum ConnectionEventType {
1525                 NOTICE,
1526                 WARNING,
1527                 ERROR,
1528                 COMMAND
1529         }
1530         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_FEATURE_")]
1531         public enum ConnectionFeature {
1532                 AGGREGATES,
1533                 BLOBS,
1534                 INDEXES,
1535                 INHERITANCE,
1536                 NAMESPACES,
1537                 PROCEDURES,
1538                 SEQUENCES,
1539                 SQL,
1540                 TRANSACTIONS,
1541                 SAVEPOINTS,
1542                 SAVEPOINTS_REMOVE,
1543                 TRIGGERS,
1544                 UPDATABLE_CURSOR,
1545                 USERS,
1546                 VIEWS,
1547                 XA_TRANSACTIONS,
1548                 MULTI_THREADING,
1549                 LAST
1550         }
1551         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_META_")]
1552         public enum ConnectionMetaType {
1553                 NAMESPACES,
1554                 TYPES,
1555                 TABLES,
1556                 VIEWS,
1557                 FIELDS,
1558                 INDEXES
1559         }
1560         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_CONNECTION_OPTIONS_")]
1561         [Flags]
1562         public enum ConnectionOptions {
1563                 NONE,
1564                 READ_ONLY,
1565                 SQL_IDENTIFIERS_CASE_SENSITIVE,
1566                 THREAD_SAFE,
1567                 THREAD_ISOLATED,
1568                 AUTO_META_DATA
1569         }
1570         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_COMPARATOR_")]
1571         public enum DataComparatorError {
1572                 MISSING_DATA_MODEL_ERROR,
1573                 COLUMN_TYPES_MISMATCH_ERROR,
1574                 MODEL_ACCESS_ERROR,
1575                 USER_CANCELLED_ERROR
1576         }
1577         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_META_WRAPPER_MODE_")]
1578         public enum DataMetaWrapperMode {
1579                 LC,
1580                 UC
1581         }
1582         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_MODEL_ACCESS_")]
1583         [Flags]
1584         public enum DataModelAccessFlags {
1585                 RANDOM,
1586                 CURSOR_FORWARD,
1587                 CURSOR_BACKWARD,
1588                 CURSOR,
1589                 INSERT,
1590                 UPDATE,
1591                 DELETE,
1592                 WRITE
1593         }
1594         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_MODEL_HINT_")]
1595         public enum DataModelHint {
1596                 START_BATCH_UPDATE,
1597                 END_BATCH_UPDATE,
1598                 REFRESH
1599         }
1600         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_MODEL_IO_")]
1601         public enum DataModelIOFormat {
1602                 DATA_ARRAY_XML,
1603                 TEXT_SEPARATED
1604         }
1605         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_MODEL_ITER_COLUMN_OUT_OF_RANGE_")]
1606         public enum DataModelIterError {
1607                 [CCode (cname = "GDA_DATA_MODEL_ITER_COLUMN_OUT_OF_RANGE_ERROR")]
1608                 DATA_MODEL_ITER_COLUMN_OUT_OF_RANGE_ERROR
1609         }
1610         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_PIVOT_")]
1611         public enum DataPivotAggregate {
1612                 AVG,
1613                 COUNT,
1614                 MAX,
1615                 MIN,
1616                 SUM
1617         }
1618         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_PIVOT_")]
1619         public enum DataPivotError {
1620                 INTERNAL_ERROR,
1621                 SOURCE_MODEL_ERROR,
1622                 FIELD_FORMAT_ERROR,
1623                 USAGE_ERROR,
1624                 OVERFLOW_ERROR
1625         }
1626         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_PIVOT_FIELD_")]
1627         public enum DataPivotFieldType {
1628                 ROW,
1629                 COLUMN
1630         }
1631         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_PROXY_")]
1632         public enum DataProxyError {
1633                 COMMIT_ERROR,
1634                 COMMIT_CANCELLED,
1635                 READ_ONLY_VALUE,
1636                 READ_ONLY_ROW,
1637                 FILTER_ERROR
1638         }
1639         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_SELECT_COND_")]
1640         public enum DataSelectConditionType {
1641                 PK,
1642                 ALL_COLUMNS
1643         }
1644         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_SELECT_")]
1645         public enum DataSelectError {
1646                 MODIFICATION_STATEMENT_ERROR,
1647                 MISSING_MODIFICATION_STATEMENT_ERROR,
1648                 CONNECTION_ERROR,
1649                 ACCESS_ERROR,
1650                 SQL_ERROR,
1651                 SAFETY_LOCKED_ERROR
1652         }
1653         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DIFF_")]
1654         public enum DiffType {
1655                 ADD_ROW,
1656                 REMOVE_ROW,
1657                 MODIFY_ROW
1658         }
1659         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_HOLDER_")]
1660         public enum HolderError {
1661                 STRING_CONVERSION_ERROR,
1662                 VALUE_TYPE_ERROR,
1663                 VALUE_NULL_ERROR
1664         }
1665         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_LDAP_SEARCH_")]
1666         public enum LdapSearchScope {
1667                 BASE,
1668                 ONELEVEL,
1669                 SUBTREE
1670         }
1671         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_DB_")]
1672         public enum MetaDbObjectType {
1673                 UNKNOWN,
1674                 TABLE,
1675                 VIEW
1676         }
1677         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_FOREIGN_KEY_")]
1678         public enum MetaForeignKeyPolicy {
1679                 UNKNOWN,
1680                 NONE,
1681                 NO_ACTION,
1682                 RESTRICT,
1683                 CASCADE,
1684                 SET_NULL,
1685                 SET_DEFAULT
1686         }
1687         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_GRAPH_")]
1688         [Flags]
1689         public enum MetaGraphInfo {
1690                 [CCode (cname = "GDA_META_GRAPH_COLUMNS")]
1691                 META_GRAPH_COLUMNS
1692         }
1693         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_SORT_")]
1694         public enum MetaSortType {
1695                 ALHAPETICAL,
1696                 DEPENDENCIES
1697         }
1698         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_STORE_")]
1699         public enum MetaStoreChangeType {
1700                 ADD,
1701                 REMOVE,
1702                 MODIFY
1703         }
1704         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_STORE_")]
1705         public enum MetaStoreError {
1706                 INCORRECT_SCHEMA_ERROR,
1707                 UNSUPPORTED_PROVIDER_ERROR,
1708                 INTERNAL_ERROR,
1709                 META_CONTEXT_ERROR,
1710                 MODIFY_CONTENTS_ERROR,
1711                 EXTRACT_SQL_ERROR,
1712                 ATTRIBUTE_NOT_FOUND_ERROR,
1713                 ATTRIBUTE_ERROR,
1714                 SCHEMA_OBJECT_NOT_FOUND_ERROR,
1715                 SCHEMA_OBJECT_CONFLICT_ERROR,
1716                 SCHEMA_OBJECT_DESCR_ERROR,
1717                 TRANSACTION_ALREADY_STARTED_ERROR
1718         }
1719         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_STRUCT_")]
1720         public enum MetaStructError {
1721                 UNKNOWN_OBJECT_ERROR,
1722                 DUPLICATE_OBJECT_ERROR,
1723                 INCOHERENCE_ERROR,
1724                 XML_ERROR
1725         }
1726         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_META_STRUCT_FEATURE_")]
1727         [Flags]
1728         public enum MetaStructFeature {
1729                 NONE,
1730                 FOREIGN_KEYS,
1731                 VIEW_DEPENDENCIES,
1732                 ALL
1733         }
1734         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_OPERATION_CREATE_TABLE_")]
1735         [Flags]
1736         public enum ServerOperationCreateTableFlag {
1737                 NOTHING_FLAG,
1738                 PKEY_FLAG,
1739                 NOT_NULL_FLAG,
1740                 UNIQUE_FLAG,
1741                 AUTOINC_FLAG,
1742                 FKEY_FLAG,
1743                 PKEY_AUTOINC_FLAG
1744         }
1745         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_OPERATION_")]
1746         public enum ServerOperationError {
1747                 OBJECT_NAME_ERROR,
1748                 INCORRECT_VALUE_ERROR,
1749                 XML_ERROR
1750         }
1751         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_OPERATION_STATUS_")]
1752         public enum ServerOperationNodeStatus {
1753                 OPTIONAL,
1754                 REQUIRED,
1755                 UNKNOWN
1756         }
1757         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_OPERATION_NODE_")]
1758         public enum ServerOperationNodeType {
1759                 PARAMLIST,
1760                 DATA_MODEL,
1761                 PARAM,
1762                 SEQUENCE,
1763                 SEQUENCE_ITEM,
1764                 DATA_MODEL_COLUMN,
1765                 UNKNOWN
1766         }
1767         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_OPERATION_")]
1768         public enum ServerOperationType {
1769                 CREATE_DB,
1770                 DROP_DB,
1771                 CREATE_TABLE,
1772                 DROP_TABLE,
1773                 RENAME_TABLE,
1774                 ADD_COLUMN,
1775                 DROP_COLUMN,
1776                 CREATE_INDEX,
1777                 DROP_INDEX,
1778                 CREATE_VIEW,
1779                 DROP_VIEW,
1780                 COMMENT_TABLE,
1781                 COMMENT_COLUMN,
1782                 CREATE_USER,
1783                 ALTER_USER,
1784                 DROP_USER,
1785                 LAST
1786         }
1787         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SERVER_PROVIDER_")]
1788         public enum ServerProviderError {
1789                 METHOD_NON_IMPLEMENTED_ERROR,
1790                 PREPARE_STMT_ERROR,
1791                 EMPTY_STMT_ERROR,
1792                 MISSING_PARAM_ERROR,
1793                 STATEMENT_EXEC_ERROR,
1794                 OPERATION_ERROR,
1795                 INTERNAL_ERROR,
1796                 BUSY_ERROR,
1797                 NON_SUPPORTED_ERROR,
1798                 SERVER_VERSION_ERROR,
1799                 DATA_ERROR,
1800                 DEFAULT_VALUE_HANDLING_ERROR,
1801                 MISUSE_ERROR,
1802                 FILE_NOT_FOUND_ERROR
1803         }
1804         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SET_")]
1805         public enum SetError {
1806                 XML_SPEC_ERROR,
1807                 HOLDER_NOT_FOUND_ERROR,
1808                 INVALID_ERROR,
1809                 READ_ONLY_ERROR,
1810                 IMPLEMENTATION_ERROR
1811         }
1812         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_BUILDER_")]
1813         public enum SqlBuilderError {
1814                 WRONG_TYPE_ERROR,
1815                 MISUSE_ERROR
1816         }
1817         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_IDENTIFIERS_")]
1818         [Flags]
1819         public enum SqlIdentifierStyle {
1820                 LOWER_CASE,
1821                 UPPER_CASE
1822         }
1823         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_OPERATOR_TYPE_")]
1824         public enum SqlOperatorType {
1825                 AND,
1826                 OR,
1827                 EQ,
1828                 IS,
1829                 LIKE,
1830                 BETWEEN,
1831                 GT,
1832                 LT,
1833                 GEQ,
1834                 LEQ,
1835                 DIFF,
1836                 REGEXP,
1837                 REGEXP_CI,
1838                 NOT_REGEXP,
1839                 NOT_REGEXP_CI,
1840                 SIMILAR,
1841                 ISNULL,
1842                 ISNOTNULL,
1843                 NOT,
1844                 IN,
1845                 NOTIN,
1846                 CONCAT,
1847                 PLUS,
1848                 MINUS,
1849                 STAR,
1850                 DIV,
1851                 REM,
1852                 BITAND,
1853                 BITOR,
1854                 BITNOT,
1855                 ILIKE
1856         }
1857         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_PARSER_")]
1858         public enum SqlParserError {
1859                 SYNTAX_ERROR,
1860                 OVERFLOW_ERROR,
1861                 EMPTY_SQL_ERROR
1862         }
1863         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_PARSER_FLAVOUR_")]
1864         public enum SqlParserFlavour {
1865                 STANDARD,
1866                 SQLITE,
1867                 MYSQL,
1868                 ORACLE,
1869                 POSTGRESQL
1870         }
1871         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_PARSER_MODE_")]
1872         public enum SqlParserMode {
1873                 PARSE,
1874                 DELIMIT
1875         }
1876         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_SELECT_JOIN_")]
1877         public enum SqlSelectJoinType {
1878                 CROSS,
1879                 NATURAL,
1880                 INNER,
1881                 LEFT,
1882                 RIGHT,
1883                 FULL;
1884                 public static unowned string to_string (Gda.SqlSelectJoinType type);
1885         }
1886         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_STATEMENT_COMPOUND_")]
1887         public enum SqlStatementCompoundType {
1888                 UNION,
1889                 UNION_ALL,
1890                 INTERSECT,
1891                 INTERSECT_ALL,
1892                 EXCEPT,
1893                 EXCEPT_ALL
1894         }
1895         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_STATEMENT_")]
1896         public enum SqlStatementType {
1897                 SELECT,
1898                 INSERT,
1899                 UPDATE,
1900                 DELETE,
1901                 COMPOUND,
1902                 BEGIN,
1903                 ROLLBACK,
1904                 COMMIT,
1905                 SAVEPOINT,
1906                 ROLLBACK_SAVEPOINT,
1907                 DELETE_SAVEPOINT,
1908                 UNKNOWN,
1909                 NONE
1910         }
1911         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_STATEMENT_")]
1912         public enum StatementError {
1913                 PARSE_ERROR,
1914                 SYNTAX_ERROR,
1915                 NO_CNC_ERROR,
1916                 CNC_CLOSED_ERROR,
1917                 EXEC_ERROR,
1918                 PARAM_TYPE_ERROR,
1919                 PARAM_ERROR
1920         }
1921         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_STATEMENT_MODEL_")]
1922         [Flags]
1923         public enum StatementModelUsage {
1924                 RANDOM_ACCESS,
1925                 CURSOR_FORWARD,
1926                 CURSOR_BACKWARD,
1927                 CURSOR,
1928                 ALLOW_NOPARAM
1929         }
1930         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_STATEMENT_SQL_")]
1931         [Flags]
1932         public enum StatementSqlFlag {
1933                 PARAMS_AS_VALUES,
1934                 PRETTY,
1935                 PARAMS_LONG,
1936                 PARAMS_SHORT,
1937                 PARAMS_AS_COLON,
1938                 PARAMS_AS_DOLLAR,
1939                 PARAMS_AS_QMARK,
1940                 PARAMS_AS_UQMARK
1941         }
1942         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_THREAD_NOTIFICATION_")]
1943         public enum ThreadNotificationType {
1944                 JOB,
1945                 SIGNAL
1946         }
1947         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_THREAD_WRAPPER_UNKNOWN_")]
1948         public enum ThreadWrapperError {
1949                 [CCode (cname = "GDA_THREAD_WRAPPER_UNKNOWN_ERROR")]
1950                 THREAD_WRAPPER_UNKNOWN_ERROR
1951         }
1952         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TRANSACTION_ISOLATION_")]
1953         public enum TransactionIsolation {
1954                 UNKNOWN,
1955                 READ_COMMITTED,
1956                 READ_UNCOMMITTED,
1957                 REPEATABLE_READ,
1958                 SERIALIZABLE
1959         }
1960         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TRANSACTION_STATUS_EVENT_")]
1961         public enum TransactionStatusEventType {
1962                 SAVEPOINT,
1963                 SQL,
1964                 SUB_TRANSACTION
1965         }
1966         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TRANSACTION_STATUS_STATE_")]
1967         public enum TransactionStatusState {
1968                 OK,
1969                 FAILED
1970         }
1971         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TREE_UNKNOWN_")]
1972         public enum TreeError {
1973                 [CCode (cname = "GDA_TREE_UNKNOWN_ERROR")]
1974                 TREE_UNKNOWN_ERROR
1975         }
1976         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TREE_MANAGER_UNKNOWN_")]
1977         public enum TreeManagerError {
1978                 [CCode (cname = "GDA_TREE_MANAGER_UNKNOWN_ERROR")]
1979                 TREE_MANAGER_UNKNOWN_ERROR
1980         }
1981         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_TREE_NODE_UNKNOWN_")]
1982         public enum TreeNodeError {
1983                 [CCode (cname = "GDA_TREE_NODE_UNKNOWN_ERROR")]
1984                 TREE_NODE_UNKNOWN_ERROR
1985         }
1986         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_VALUE_ATTR_")]
1987         [Flags]
1988         public enum ValueAttribute {
1989                 NONE,
1990                 IS_NULL,
1991                 CAN_BE_NULL,
1992                 IS_DEFAULT,
1993                 CAN_BE_DEFAULT,
1994                 IS_UNCHANGED,
1995                 ACTIONS_SHOWN,
1996                 DATA_NON_VALID,
1997                 HAS_VALUE_ORIG,
1998                 NO_MODIF,
1999                 UNUSED
2000         }
2001         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_XA_TRANSACTION_")]
2002         public enum XaTransactionError {
2003                 ALREADY_REGISTERED_ERROR,
2004                 DTP_NOT_SUPPORTED_ERROR,
2005                 CONNECTION_BRANCH_LENGTH_ERROR
2006         }
2007         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_DATA_MODEL_")]
2008         public errordomain DataModelError {
2009                 ROW_OUT_OF_RANGE_ERROR,
2010                 COLUMN_OUT_OF_RANGE_ERROR,
2011                 VALUES_LIST_ERROR,
2012                 VALUE_TYPE_ERROR,
2013                 ROW_NOT_FOUND_ERROR,
2014                 ACCESS_ERROR,
2015                 FEATURE_NON_SUPPORTED_ERROR,
2016                 FILE_EXIST_ERROR,
2017                 XML_FORMAT_ERROR,
2018                 TRUNCATED_ERROR,
2019                 OTHER_ERROR;
2020                 public static GLib.Quark quark ();
2021         }
2022         [CCode (cheader_filename = "libgda/libgda.h", cprefix = "GDA_SQL_")]
2023         public errordomain SqlError {
2024                 STRUCTURE_CONTENTS_ERROR,
2025                 MALFORMED_IDENTIFIER_ERROR,
2026                 MISSING_IDENTIFIER_ERROR,
2027                 VALIDATION_ERROR;
2028                 public static GLib.Quark quark ();
2029         }
2030         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2031         public delegate void AttributesManagerFunc (string att_name, GLib.Value value, void* data);
2032         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2033         public delegate void AttributesManagerSignal (GLib.Object obj, string att_name, GLib.Value value, void* data);
2034         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2035         public delegate void ServerProviderAsyncCallback (Gda.ServerProvider provider, Gda.Connection cnc, uint task_id, bool result_status, GLib.Error error, void* data);
2036         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2037         public delegate void ServerProviderExecCallback (Gda.ServerProvider provider, Gda.Connection cnc, uint task_id, GLib.Object result_obj, GLib.Error error, void* data);
2038         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2039         public delegate string SqlRenderingValue (GLib.Value value, Gda.SqlRenderingContext context) throws GLib.Error;
2040         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2041         public delegate bool SqlReservedKeywordsFunc (string word);
2042         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2043         public delegate void ThreadWrapperCallback (Gda.ThreadWrapper wrapper, void* instance, string signame, int n_param_values, GLib.Value param_values, void* gda_reserved, void* data);
2044         [CCode (cheader_filename = "libgda/libgda.h", has_target = false)]
2045         public delegate void ThreadWrapperVoidFunc (void* arg) throws GLib.Error;
2046         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_AUTO_INCREMENT")]
2047         public const string ATTRIBUTE_AUTO_INCREMENT;
2048         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_DESCRIPTION")]
2049         public const string ATTRIBUTE_DESCRIPTION;
2050         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_IS_DEFAULT")]
2051         public const string ATTRIBUTE_IS_DEFAULT;
2052         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_NAME")]
2053         public const string ATTRIBUTE_NAME;
2054         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_NUMERIC_PRECISION")]
2055         public const string ATTRIBUTE_NUMERIC_PRECISION;
2056         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_NUMERIC_SCALE")]
2057         public const string ATTRIBUTE_NUMERIC_SCALE;
2058         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN")]
2059         public const string ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN;
2060         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_EXTRA_AUTO_INCREMENT")]
2061         public const string EXTRA_AUTO_INCREMENT;
2062         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_SQLSTATE_GENERAL_ERROR")]
2063         public const string SQLSTATE_GENERAL_ERROR;
2064         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_SQLSTATE_NO_ERROR")]
2065         public const string SQLSTATE_NO_ERROR;
2066         [CCode (cheader_filename = "libgda/libgda.h", cname = "GDA_TIMEZONE_INVALID")]
2067         public const int TIMEZONE_INVALID;
2068         [CCode (cheader_filename = "libgda/libgda.h")]
2069         public static string alphanum_to_text (string text);
2070         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgda/libgda.h")]
2071         public static string[] completion_list_get (Gda.Connection cnc, string sql, int start, int end);
2072         [CCode (cheader_filename = "libgda/libgda.h")]
2073         public static bool compute_dml_statements (Gda.Connection cnc, Gda.Statement select_stmt, bool require_pk, owned Gda.Statement? insert_stmt, owned Gda.Statement? update_stmt, owned Gda.Statement? delete_stmt) throws GLib.Error;
2074         [CCode (cheader_filename = "libgda/libgda.h")]
2075         public static unowned Gda.DataHandler data_handler_get_default (GLib.Type for_type);
2076         [CCode (cheader_filename = "libgda/libgda.h")]
2077         public static void dsn_split (string string, string out_dsn, string out_username, string out_password);
2078         [CCode (cheader_filename = "libgda/libgda.h")]
2079         public static GLib.Type g_type_from_string (string str);
2080         [CCode (cheader_filename = "libgda/libgda.h")]
2081         public static unowned string g_type_to_string (GLib.Type type);
2082         [CCode (cheader_filename = "libgda/libgda.h")]
2083         public static bool identifier_equal (string id1, string id2);
2084         [CCode (cheader_filename = "libgda/libgda.h")]
2085         public static uint identifier_hash (string id);
2086         [CCode (cheader_filename = "libgda/libgda.h")]
2087         public static void log_disable ();
2088         [CCode (cheader_filename = "libgda/libgda.h")]
2089         public static void log_enable ();
2090         [CCode (cheader_filename = "libgda/libgda.h")]
2091         public static bool log_is_enabled ();
2092         [CCode (cheader_filename = "libgda/libgda.h")]
2093         public static bool parse_iso8601_date (GLib.Date gdate, string value);
2094         [CCode (cheader_filename = "libgda/libgda.h")]
2095         public static bool parse_iso8601_time (Gda.Time timegda, string value);
2096         [CCode (cheader_filename = "libgda/libgda.h")]
2097         public static bool parse_iso8601_timestamp (Gda.Timestamp timestamp, string value);
2098         [CCode (cheader_filename = "libgda/libgda.h")]
2099         public static bool rewrite_statement_for_null_parameters (Gda.Statement stmt, Gda.Set @params, owned Gda.Statement? out_stmt) throws GLib.Error;
2100         [CCode (cheader_filename = "libgda/libgda.h")]
2101         public static bool rfc1738_decode (string string);
2102         [CCode (cheader_filename = "libgda/libgda.h")]
2103         public static string rfc1738_encode (string string);
2104         [CCode (cheader_filename = "libgda/libgda.h")]
2105         public static Gda.Statement select_alter_select_for_empty (Gda.Statement stmt) throws GLib.Error;
2106         [CCode (cheader_filename = "libgda/libgda.h")]
2107         public static string sql_identifier_quote (string id, Gda.Connection? cnc, Gda.ServerProvider? prov, bool meta_store_convention, bool force_quotes);
2108         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "libgda/libgda.h")]
2109         public static string[] sql_identifier_split (string id);
2110         [CCode (cheader_filename = "libgda/libgda.h")]
2111         public static Gda.SqlOperatorType sql_operation_operator_from_string (string op);
2112         [CCode (cheader_filename = "libgda/libgda.h")]
2113         public static unowned string sql_operation_operator_to_string (Gda.SqlOperatorType op);
2114         [CCode (cheader_filename = "libgda/libgda.h")]
2115         public static Gda.Binary string_to_binary (string? str);
2116         [CCode (cheader_filename = "libgda/libgda.h")]
2117         public static Gda.Blob string_to_blob (string str);
2118         [CCode (cheader_filename = "libgda/libgda.h")]
2119         public static string text_to_alphanum (string text);
2120         [CCode (cheader_filename = "libgda/libgda.h")]
2121         public static bool utility_check_data_model_v (Gda.DataModel model, [CCode (array_length_cname = "nbcols", array_length_pos = 1.5)] GLib.Type[] types);
2122         [CCode (cheader_filename = "libgda/libgda.h")]
2123         public static bool utility_data_model_dump_data_to_xml (Gda.DataModel model, [CCode (type = "xmlNodePtr")] Xml.Node* parent, [CCode (array_length_cname = "nb_cols", array_length_pos = 3.5)] int[]? cols, [CCode (array_length_cname = "nb_rows", array_length_pos = 4.5)] int[]? rows, bool use_col_ids);
2124         [CCode (cheader_filename = "libgda/libgda.h")]
2125         public static unowned string utility_data_model_find_column_description (Gda.DataSelect model, string field_name);
2126         [CCode (cheader_filename = "libgda/libgda.h")]
2127         public static bool utility_holder_load_attributes (Gda.Holder holder, [CCode (type = "xmlNodePtr")] Xml.Node* node, GLib.SList<Gda.DataModel> sources) throws GLib.Error;
2128         [CCode (cheader_filename = "libgda/libgda.h")]
2129         public static int value_compare (GLib.Value value1, GLib.Value value2);
2130         [CCode (cheader_filename = "libgda/libgda.h")]
2131         public static int value_differ (GLib.Value value1, GLib.Value value2);
2132         [CCode (cheader_filename = "libgda/libgda.h")]
2133         public static string value_stringify (GLib.Value value);
2134 }