/* 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. */ #include "gda-.h" /* * Private functions */ /* * Public functions */ gboolean gda__command_new (GdaServerCommand *cmd) { return TRUE; } GdaServerRecordset * gda__command_execute (GdaServerCommand *cmd, GdaError *error, const GDA_CmdParameterSeq *params, gulong *affected, gulong options) { Gda_ServerRecordset* recset = NULL; switch (gda_server_command_get_type(cmd)) { case GDA_COMMAND_TYPE_TEXT : /* TODO: execute [SQL] command and return recordset */ break; case GDA_COMMAND_TYPE_TABLE : /* TODO: return the contents of table named in the command */ break; case GDA_COMMAND_TYPE_STOREDPROCEDURE : /* TODO: execute specified procedure */ break; case GDA_COMMAND_TYPE_FILE : /* TODO: read commands from given file */ break; } return recset; } void gda__command_free (Gda_ServerCommand *cmd) { /* TODO: free all the data you allocated for this command */ }