/* GNOME DB Provider * Copyright (C) 2000 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #if !defined(__gda__h__) # define __gda__h__ #if defined(HAVE_CONFIG_H) # include #endif #include /* * Per-object specific structures */ typedef struct { } _Connection; typedef struct { } _Command; typedef struct { } _Recordset; /* * Server implementation prototypes */ gboolean gda__connection_new (Gda_ServerConnection *cnc); gint gda__connection_open (Gda_ServerConnection *cnc, const gchar *dsn, const gchar *user, const gchar *password); void gda__connection_close (Gda_ServerConnection *cnc); gint gda__connection_begin_transaction (Gda_ServerConnection *cnc); gint gda__connection_commit_transaction (Gda_ServerConnection *cnc); gint gda__connection_rollback_transaction (Gda_ServerConnection *cnc); Gda_ServerRecordset* gda__connection_open_schema (Gda_ServerConnection *cnc, Gda_ServerError *error, GDA_Connection_QType t, GDA_Connection_Constraint *constraints, gint length); gint gda__connection_start_logging (Gda_ServerConnection *cnc, const gchar *filename); gint gda__connection_stop_logging (Gda_ServerConnection *cnc); gchar* gda__connection_create_table (Gda_ServerConnection *cnc, GDA_RowAttributes *columns); gboolean gda__connection_supports (Gda_ServerConnection *cnc, GDA_Connection_Feature feature); GDA_ValueType gda__connection_get_gda_type (Gda_ServerConnection *cnc, gulong sql_type); gshort gda__connection_get_c_type (Gda_ServerConnection *cnc, GDA_ValueType type); void gda__connection_free (Gda_ServerConnection *cnc); gboolean gda__command_new (Gda_ServerCommand *cmd); Gda_ServerRecordset* gda__command_execute (Gda_ServerCommand *cmd, Gda_ServerError *error, const GDA_CmdParameterSeq *params, gulong *affected, gulong options); void gda__command_free (Gda_ServerCommand *cmd); gboolean gda__recordset_new (Gda_ServerRecordset *recset); gint gda__recordset_move_next (Gda_ServerRecordset *recset); gint gda__recordset_move_prev (Gda_ServerRecordset *recset); gint gda__recordset_close (Gda_ServerRecordset *recset); void gda__recordset_free (Gda_ServerRecordset *recset); void gda__error_make (Gda_ServerError *error, Gda_ServerRecordset *recset, Gda_ServerConnection *cnc, gchar *where); #endif