![]() |
![]() |
![]() |
GNOME Data Access 4.0 manual | ![]() |
---|---|---|---|---|
GdaSqlParser* gda_server_provider_internal_get_parser (GdaServerProvider *prov); gboolean gda_server_provider_perform_operation_default (GdaServerProvider *provider, GdaConnection *cnc, GdaServerOperation *op, GError **error); GdaDataHandler* gda_server_provider_get_data_handler_default (GdaServerProvider *provider, GdaConnection *cnc, GType type, const gchar *dbms_type); GdaDataHandler* gda_server_provider_handler_find (GdaServerProvider *prov, GdaConnection *cnc, GType g_type, const gchar *dbms_type); void gda_server_provider_handler_declare (GdaServerProvider *prov, GdaDataHandler *dh, GdaConnection *cnc, GType g_type, const gchar *dbms_type); gchar* gda_server_provider_find_file (GdaServerProvider *prov, const gchar *inst_dir, const gchar *filename); gchar* gda_server_provider_load_file_contents (const gchar *inst_dir, const gchar *data_dir, const gchar *filename); void gda_connection_internal_set_provider_data (GdaConnection *cnc, gpointer data, GDestroyNotify destroy_func); gpointer gda_connection_internal_get_provider_data (GdaConnection *cnc); void gda_virtual_connection_internal_set_provider_data (GdaVirtualConnection *vcnc, gpointer data, GDestroyNotify destroy_func); gpointer gda_virtual_connection_internal_get_provider_data (GdaVirtualConnection *cnc); void gda_connection_add_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt, gpointer prepared_stmt); void gda_connection_del_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt); gpointer gda_connection_get_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt); void gda_connection_internal_transaction_started (GdaConnection *cnc, const gchar *parent_trans, const gchar *trans_name, GdaTransactionIsolation isol_level); void gda_connection_internal_transaction_rolledback (GdaConnection *cnc, const gchar *trans_name); void gda_connection_internal_transaction_committed (GdaConnection *cnc, const gchar *trans_name); void gda_connection_internal_statement_executed (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params, GdaConnectionEvent *error); void gda_connection_internal_savepoint_added (GdaConnection *cnc, const gchar *parent_trans, const gchar *svp_name); void gda_connection_internal_savepoint_rolledback (GdaConnection *cnc, const gchar *svp_name); void gda_connection_internal_savepoint_removed (GdaConnection *cnc, const gchar *svp_name); void gda_connection_internal_change_transaction_state (GdaConnection *cnc, GdaTransactionStatusState newstate);
The methods mentionned in this section are reserved for database providers implementatins and should not bu used by developers outside that scope.
GdaSqlParser* gda_server_provider_internal_get_parser (GdaServerProvider *prov);
This is a factory method to get a unique instance of a GdaSqlParser object
for each GdaServerProvider object
Don't unref()
it.
|
|
Returns : |
a GdaSqlParser |
gboolean gda_server_provider_perform_operation_default (GdaServerProvider *provider, GdaConnection *cnc, GdaServerOperation *op, GError **error);
Performs the operation described by op
, using the SQL from the rendering of the operation
|
a GdaServerProvider object |
|
a GdaConnection object which will be used to perform an action, or NULL
|
|
a GdaServerOperation object |
|
a place to store an error, or NULL
|
Returns : |
TRUE if no error occurred |
GdaDataHandler* gda_server_provider_get_data_handler_default (GdaServerProvider *provider, GdaConnection *cnc, GType type, const gchar *dbms_type);
Provides the implementation when the default Libgda's data handlers must be used
|
a server provider. |
|
a GdaConnection object, or NULL
|
|
|
|
a DBMS type definition |
Returns : |
a GdaDataHandler, or NULL
|
GdaDataHandler* gda_server_provider_handler_find (GdaServerProvider *prov, GdaConnection *cnc, GType g_type, const gchar *dbms_type);
|
|
|
|
|
|
|
|
Returns : |
void gda_server_provider_handler_declare (GdaServerProvider *prov, GdaDataHandler *dh, GdaConnection *cnc, GType g_type, const gchar *dbms_type);
|
|
|
|
|
|
|
|
|
gchar* gda_server_provider_find_file (GdaServerProvider *prov, const gchar *inst_dir, const gchar *filename);
|
|
|
|
|
|
Returns : |
gchar* gda_server_provider_load_file_contents (const gchar *inst_dir, const gchar *data_dir, const gchar *filename);
|
|
|
|
|
|
Returns : |
void gda_connection_internal_set_provider_data (GdaConnection *cnc, gpointer data, GDestroyNotify destroy_func);
Note: calling this function more than once will not make it call destroy_func
on any previously
set opaque data
, you'll have to do it yourself.
|
a GdaConnection object |
|
an opaque structure, known only to the provider for which cnc is opened
|
|
function to call when the connection closes and data needs to be destroyed
|
gpointer gda_connection_internal_get_provider_data (GdaConnection *cnc);
Get the opaque pointer previously set using gda_connection_internal_set_provider_data()
.
If it's not set, then add a connection event and returns NULL
|
a GdaConnection object |
Returns : |
the pointer to the opaque structure set using gda_connection_internal_set_provider_data()
|
void gda_virtual_connection_internal_set_provider_data (GdaVirtualConnection *vcnc, gpointer data, GDestroyNotify destroy_func);
Note: calling this function more than once will not make it call destroy_func
on any previously
set opaque data
, you'll have to do it yourself.
|
|
|
|
|
gpointer gda_virtual_connection_internal_get_provider_data (GdaVirtualConnection *cnc);
Get the opaque pointer previously set using gda_virtual_connection_internal_set_provider_data()
.
If it's not set, then add a connection event and returns NULL
|
|
Returns : |
void gda_connection_add_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt, gpointer prepared_stmt);
|
|
|
|
|
void gda_connection_del_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt);
|
|
|
gpointer gda_connection_get_prepared_statement (GdaConnection *cnc, GdaStatement *gda_stmt);
|
|
|
|
Returns : |
void gda_connection_internal_transaction_started (GdaConnection *cnc, const gchar *parent_trans, const gchar *trans_name, GdaTransactionIsolation isol_level);
|
|
|
|
|
|
|
void gda_connection_internal_transaction_rolledback (GdaConnection *cnc, const gchar *trans_name);
|
|
|
void gda_connection_internal_transaction_committed (GdaConnection *cnc, const gchar *trans_name);
|
|
|
void gda_connection_internal_statement_executed (GdaConnection *cnc, GdaStatement *stmt, GdaSet *params, GdaConnectionEvent *error);
|
|
|
|
|
|
|
void gda_connection_internal_savepoint_added (GdaConnection *cnc, const gchar *parent_trans, const gchar *svp_name);
|
|
|
|
|
void gda_connection_internal_savepoint_rolledback (GdaConnection *cnc, const gchar *svp_name);
|
|
|
void gda_connection_internal_savepoint_removed (GdaConnection *cnc, const gchar *svp_name);
|
|
|
void gda_connection_internal_change_transaction_state (GdaConnection *cnc, GdaTransactionStatusState newstate);
|
|
|