GdaBatch GdaBatchClass GDA_TYPE_BATCH #define GDA_TYPE_BATCH (gda_batch_get_type()) GDA_BATCH #define GDA_BATCH(obj) GTK_CHECK_CAST(obj, GDA_TYPE_BATCH, GdaBatch) GDA_BATCH_CLASS #define GDA_BATCH_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_BATCH, GdaBatchClass) GDA_IS_BATCH #define GDA_IS_BATCH(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_BATCH) GDA_IS_BATCH_CLASS #define GDA_IS_BATCH_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_BATCH)) GdaBatch struct GdaBatch { GtkObject object; GdaConnection *cnc; gboolean transaction_mode; gboolean is_running; GList *commands; }; gda_batch_get_type guint void gda_batch_new GdaBatch * void gda_batch_free void GdaBatch * job gda_batch_load_file gboolean GdaBatch * job, const gchar * filename,gboolean clean gda_batch_add_command void GdaBatch * job, const gchar * cmd gda_batch_clear void GdaBatch * job gda_batch_start gboolean GdaBatch * job gda_batch_stop void GdaBatch * job gda_batch_is_running gboolean GdaBatch * job gda_batch_get_connection GdaConnection * GdaBatch * job gda_batch_set_connection void GdaBatch * job, GdaConnection * cnc gda_batch_get_transaction_mode gboolean GdaBatch * job gda_batch_set_transaction_mode void GdaBatch * job, gboolean mode GdaCommand GdaCommandClass GDA_TYPE_COMMAND #define GDA_TYPE_COMMAND (gda_command_get_type()) GDA_COMMAND #define GDA_COMMAND(obj) GTK_CHECK_CAST(obj, GDA_TYPE_COMMAND, GdaCommand) GDA_COMMAND_CLASS #define GDA_COMMAND_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_COMMAND, GdaCommandClass) GDA_IS_COMMAND #define GDA_IS_COMMAND(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_COMMAND) GDA_IS_COMMAND_CLASS #define GDA_IS_COMMAND_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_COMMAND)) GdaCommand struct GdaCommand { GtkObject object; CORBA_Object command; CORBA_ORB orb; GdaConnection *connection; gchar *text; GDA_CommandType type; GList *parameters; gboolean text_pending; gboolean type_pending; }; gda_command_get_type guint void gda_command_new GdaCommand * void gda_command_free void GdaCommand * cmd gda_command_get_connection GdaConnection * GdaCommand * cmd gda_command_set_connection void GdaCommand * cmd,GdaConnection * cnc gda_command_get_text gchar * GdaCommand * cmd gda_command_set_text void GdaCommand * cmd, gchar * text gda_command_get_cmd_type GDA_CommandType GdaCommand * cmd gda_command_set_cmd_type void GdaCommand * cmd,GDA_CommandType type gda_command_execute GdaRecordset * GdaCommand * cmd,gulong * reccount, gulong flags gda_command_create_parameter void GdaCommand * cmd, gchar * name,GDA_ParameterDirection inout,GDA_Value * value GdaConnectionPool GdaConnectionPoolClass GDA_TYPE_CONNECTION_POOL #define GDA_TYPE_CONNECTION_POOL (gda_connection_pool_get_type()) GDA_CONNECTION_POOL # define GDA_CONNECTION_POOL(obj) GTK_CHECK_CAST(obj, GDA_TYPE_CONNECTION_POOL, GdaConnectionPool) GDA_CONNECTION_POOL_CLASS # define GDA_CONNECTION_POOL_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_CONNECTION_POOL, GdaConnectionPoolClass) GDA_IS_CONNECTION_POOL # define GDA_IS_CONNECTION_POOL(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_CONNECTION_POOL) GDA_IS_CONNECTION_POOL_CLASS # define GDA_IS_CONNECTION_POOL_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_CONNECTION_POOL)) GdaConnectionPool struct GdaConnectionPool { GtkObject object; GList *connections; }; gda_connection_pool_get_type GtkType void gda_connection_pool_new GdaConnectionPool * void gda_connection_pool_free void GdaConnectionPool * pool gda_connection_pool_open_connection GdaConnection * GdaConnectionPool *pool,const gchar *gda_name,const gchar *username,const gchar *password gda_connection_pool_close_connection void GdaConnectionPool * pool,GdaConnection * cnc gda_connection_pool_close_all void GdaConnectionPool * pool GdaConnectionPoolForeachFunc void GdaConnectionPool *pool, GdaConnection * cnc, const gchar * gda_name, const gchar * username, const gchar * password, gpointer user_data gda_connection_pool_foreach void GdaConnectionPool * pool,GdaConnectionPoolForeachFunc func,gpointer user_data GdaConnection GdaConnectionClass GDA_TYPE_CONNECTION #define GDA_TYPE_CONNECTION (gda_connection_get_type()) GDA_CONNECTION #define GDA_CONNECTION(obj) GTK_CHECK_CAST(obj, GDA_TYPE_CONNECTION, GdaConnection) GDA_CONNECTION_CLASS #define GDA_CONNECTION_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_CONNECTION, GdaConnectionClass) GDA_IS_CONNECTION #define GDA_IS_CONNECTION(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_CONNECTION) GDA_IS_CONNECTION_CLASS #define GDA_IS_CONNECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_CONNECTION)) GdaConnection struct GdaConnection { GtkObject object; CORBA_Object connection; CORBA_ORB orb; GList *commands; GList *recordsets; gchar *provider; gchar *default_db; gchar *database; gchar *user; gchar *passwd; GList *errors_head; gint is_open; }; gda_connection_get_type guint void gda_connection_new GdaConnection * CORBA_ORB orb gda_connection_new_from_dsn GdaConnection * const gchar * dsn_name,const gchar * username,const gchar * password gda_connection_free void GdaConnection * cnc gda_connection_set_provider void GdaConnection * cnc, gchar * name gda_connection_get_provider const gchar * GdaConnection * cnc gda_connection_supports gboolean GdaConnection * cnc,GDA_Connection_Feature feature gda_connection_set_default_db void GdaConnection * cnc, gchar * dsn gda_connection_open gint GdaConnection * cnc,const gchar * dsn,const gchar * user, const gchar * pwd gda_connection_close void GdaConnection * cnc gda_connection_open_schema GdaRecordset * GdaConnection * cnc,GDA_Connection_QType t,... gda_connection_open_schema_array GdaRecordset * GdaConnection * cnc,GDA_Connection_QType t,GdaConstraint_Element * gda_connection_modify_schema glong GdaConnection * cnc,GDA_Connection_QType t, ... gda_connection_get_errors GList * GdaConnection * cnc gda_connection_begin_transaction gint GdaConnection * cnc gda_connection_commit_transaction gint GdaConnection * cnc gda_connection_rollback_transaction gint GdaConnection * cnc gda_connection_execute GdaRecordset * GdaConnection * cnc,gchar * txt, gulong * reccount,gulong flags gda_connection_start_logging gint GdaConnection * cnc,gchar * filename gda_connection_stop_logging gint GdaConnection * cnc gda_connection_create_recordset gchar * GdaConnection * cnc,GdaRecordset * rs gda_connection_corba_exception gint GdaConnection * cnc,CORBA_Environment * ev gda_connection_add_single_error void GdaConnection * cnc,GdaError * error gda_connection_add_error_list void GdaConnection * cnc,GList * list gda_connection_is_open #define gda_connection_is_open(cnc) ((cnc) ? GDA_CONNECTION(cnc)->is_open : FALSE) gda_connection_get_dsn #define gda_connection_get_dsn(cnc) ((cnc) ? GDA_CONNECTION(cnc)->database : 0) gda_connection_get_user #define gda_connection_get_user(cnc) ((cnc) ? GDA_CONNECTION(cnc)->user : 0) gda_connection_get_password #define gda_connection_get_password(cnc) ((cnc) ? GDA_CONNECTION(cnc)->passwd : 0) gda_connection_get_version gchar * GdaConnection * cnc gda_connection_sql2xml gchar * GdaConnection * cnc,const gchar * sql gda_connection_xml2sql gchar * GdaConnection * cnc,const gchar * xml gda_connection_add_listener void GdaConnection * cnc,GdaListener * listener gda_connection_remove_listener void GdaConnection * cnc,GdaListener * listener GdaExport GdaExportClass GdaExportPrivate GDA_TYPE_EXPORT #define GDA_TYPE_EXPORT (gda_export_get_type()) GDA_EXPORT #define GDA_EXPORT(obj) GTK_CHECK_CAST(obj, GDA_TYPE_EXPORT, GdaExport) GDA_EXPORT_CLASS #define GDA_EXPORT_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_EXPORT, GdaExportClass) GDA_IS_EXPORT #define GDA_IS_EXPORT(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_EXPORT) GDA_IS_EXPORT_CLASS #define GDA_IS_EXPORT_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_EXPORT)) GdaExport struct GdaExport { GtkObject object; GdaExportPrivate *priv; }; GdaExportFlags typedef enum { GDA_EXPORT_FLAGS_TABLE_DATA = 1 } GdaExportFlags; gda_export_get_type GtkType void gda_export_new GdaExport * GdaConnection * cnc gda_export_free void GdaExport * exp gda_export_get_tables GList * GdaExport * exp gda_export_get_selected_tables GList * GdaExport * exp gda_export_select_table void GdaExport * exp, const gchar * table gda_export_select_table_list void GdaExport *exp, GList *tables gda_export_unselect_table void GdaExport * exp, const gchar * table gda_export_run void GdaExport * exp, GdaExportFlags flags gda_export_stop void GdaExport * exp gda_export_get_connection GdaConnection * GdaExport * exp gda_export_set_connection void GdaExport * exp, GdaConnection * cnc GdaField GdaFieldClass GDA_TYPE_FIELD #define GDA_TYPE_FIELD (gda_field_get_type()) GDA_FIELD #define GDA_FIELD(obj) GTK_CHECK_CAST(obj, GDA_TYPE_FIELD, GdaField) GDA_FIELD_CLASS #define GDA_FIELD_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_FIELD, GdaFieldClass) GDA_IS_FIELD #define GDA_IS_FIELD(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_FIELD) GDA_IS_FIELD_CLASS #define GDA_IS_FIELD_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_FIELD)) GdaField struct GdaField { GtkObject object; GDA_FieldAttributes *attributes; gint actual_length; GDA_FieldValue *real_value; GDA_FieldValue *shadow_value; GDA_FieldValue *original_value; }; gda_field_is_null #define gda_field_is_null(f) (f->real_value ? (f)->real_value->_d : 1) gda_field_get_tinyint_value #define gda_field_get_tinyint_value(f) ((f)->real_value->_u.v._u.c) gda_field_get_bigint_value #define gda_field_get_bigint_value(f) ((f)->real_value->_u.v._u.ll) gda_field_get_boolean_value #define gda_field_get_boolean_value(f) ((f)->real_value->_u.v._u.b) gda_field_get_date_value GDate * GdaField *field gda_field_get_time_value #define gda_field_get_time_value(f) ((f)->real_value->_u.v._u.dbt) gda_field_get_timestamp_value time_t GdaField *field gda_field_get_double_value #define gda_field_get_double_value(f) ((f)->real_value->_u.v._u.dp) gda_field_get_integer_value #define gda_field_get_integer_value(f) ((f)->real_value->_u.v._u.i) gda_field_get_binary_value #define gda_field_get_binary_value(f) ((f)->real_value->_u.v._u.lvb._buffer) gda_field_get_string_value #define gda_field_get_string_value(f) ((f)->real_value->_u.v._u.lvc) gda_field_get_single_value #define gda_field_get_single_value(fld) ((fld)->real_value->_u.v._u.f) gda_field_get_smallint_value #define gda_field_get_smallint_value(f) ((f)->real_value->_u.v._u.si) gda_field_get_ubigint_value #define gda_field_get_ubigint_value(f) ((f)->real_value->_u.v._u.ull) gda_field_get_usmallint_value #define gda_field_get_usmallint_value(f) ((f)->real_value->_u.v._u.us) gda_field_get_type guint void gda_field_new GdaField * void gda_field_free void GdaField *field gda_field_actual_size gint GdaField * f gda_field_get_defined_size #define gda_field_get_defined_size(f) (f->attributes->definedSize) gda_field_get_name #define gda_field_get_name(f) (f->attributes->name) gda_field_get_scale #define gda_field_get_scale(f) (f->attributes->scale) gda_field_get_gdatype #define gda_field_get_gdatype(f) (f->attributes->gdaType) gda_field_get_ctype #define gda_field_get_ctype(f) (f->attributes->cType) gda_field_get_nativetype #define gda_field_get_nativetype(f) (f->attributes->nativeType) gda_fieldtype_2_string gchar * gchar * bfr, gint length,GDA_ValueType type gda_string_2_fieldtype GDA_ValueType gchar * type gda_stringify_value gchar * gchar * bfr, gint length, GdaField * f GdaRecordset GdaRecordsetClass GDA_TYPE_RECORDSET #define GDA_TYPE_RECORDSET (gda_recordset_get_type()) GDA_RECORDSET #define GDA_RECORDSET(obj) GTK_CHECK_CAST(obj, GDA_TYPE_RECORDSET, GdaRecordset) GDA_RECORDSET_CLASS #define GDA_RECORDSET_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_RECORDSET, GdaRecordsetClass) GDA_IS_RECORDSET #define GDA_IS_RECORDSET(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_RECORDSET) GDA_IS_RECORDSET_CLASS #define GDA_IS_RECORDSET_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_RECORDSET)) GDA_RECORDSET_INVALID_POSITION #define GDA_RECORDSET_INVALID_POSITION 0xffffffff GdaRecordset struct GdaRecordset { GtkObject object; GdaCommand *external_cmd; GdaCommand *internal_cmd; /* used for cmd object * generated by gda_recordset_open */ CORBA_Object corba_rs; GdaConnection *cnc; CORBA_ORB orb; GList *chunks; gint chunks_length; GDA_Row *current_row; GDA_RowAttributes *field_attributes; /* current index(adjustment->value). 0 means invalid, 1 is the first record */ gulong current_index; /* max index (adjustment->upper), 0 is invalid */ gulong max_index; gulong affected_rows; gint maxrows; gint cachesize; gint open; gint eof; gint bof; gint readonly; GDA_CursorLocation cursor_location; GDA_CursorType cursor_type; GDA_LockType lock_type; gchar *name; }; gda_recordset_get_type guint void gda_recordset_new GdaRecordset * void gda_recordset_free void GdaRecordset * rs gda_recordset_set_name void GdaRecordset * rs, gchar * name gda_recordset_get_name void GdaRecordset * rs, gchar * name gda_recordset_close void GdaRecordset * rs gda_recordset_field_name GdaField * GdaRecordset * rs, gchar * name gda_recordset_field_idx GdaField * GdaRecordset * rs, gint idx gda_recordset_bof gboolean GdaRecordset * rs gda_recordset_eof gboolean GdaRecordset * rs gda_recordset_move gulong GdaRecordset * rs,gint count, gpointer bookmark gda_recordset_move_first gulong GdaRecordset * rs gda_recordset_move_last gulong GdaRecordset * rs gda_recordset_move_next gulong GdaRecordset * rs gda_recordset_move_prev gulong GdaRecordset * rs gda_recordset_rowsize gint GdaRecordset * rs gda_recordset_affected_rows gulong GdaRecordset * rs gda_recordset_open gint GdaRecordset * rs,GdaCommand * cmd,GDA_CursorType cursor_type,GDA_LockType lock_type, gulong options gda_recordset_open_txt gint GdaRecordset * rs,gchar * txt,GDA_CursorType cursor_type,GDA_LockType lock_type, gulong options gda_recordset_set_connection gint GdaRecordset * rs,GdaConnection * cnc gda_recordset_get_connection GdaConnection * GdaRecordset * rs gda_recordset_add_field gint GdaRecordset * rs, GdaField * field gda_recordset_create gint GdaRecordset * rs gda_recordset_get_cursorloc GDA_CursorLocation GdaRecordset * rs gda_recordset_set_cursorloc void GdaRecordset * rs,GDA_CursorLocation loc gda_recordset_get_cursortype GDA_CursorType GdaRecordset * rs gda_recordset_set_cursortype void GdaRecordset * rs,GDA_CursorType type gda_recordset_to_array GPtrArray * GdaRecordset * rs gda_recordset_get_row GList * GdaRecordset *rs gda_recordset_get_row_as_string gchar * GdaRecordset *rs gda_value_new GDA_Value * void gda_value_free void GDA_Value * val gda_value_set_gint void GDA_Value * val, gint i gda_value_set_guint void GDA_Value * val, guint ui gda_value_set_glong void GDA_Value * val, glong l gda_value_set_gulong void GDA_Value * val, gulong ul gda_value_set_gshort void GDA_Value * val, gshort s gda_value_set_gushort void GDA_Value * val, gushort us gda_value_set_glong_long void GDA_Value * val, glonglong ll gda_value_set_gulong_long void GDA_Value * val, gulonglong ull