1 /* 2 * Copyright (C) 2005 Dan Winship <danw@src.gnome.org> 3 * Copyright (C) 2005 - 2011 Vivien Malerba <malerba@gnome-db.org> 4 * Copyright (C) 2005 Álvaro Peña <alvaropg@telefonica.net> 5 * Copyright (C) 2007 Armin Burgmeier <armin@openismus.com> 6 * Copyright (C) 2007 - 2009 Murray Cumming <murrayc@murrayc.com> 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the 20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 #ifndef _GDA_STATEMENT_STRUCT_DELETE_H_ 25 #define _GDA_STATEMENT_STRUCT_DELETE_H_ 26 27 #include <glib.h> 28 #include <glib-object.h> 29 #include <sql-parser/gda-statement-struct-decl.h> 30 #include <sql-parser/gda-statement-struct-select.h> 31 #include <sql-parser/gda-statement-struct-parts.h> 32 33 G_BEGIN_DECLS 34 35 /* 36 * Structure definition 37 */ 38 /** 39 * GdaSqlStatementDelete: 40 * @any: 41 * @table: 42 * @cond: 43 */ 44 struct _GdaSqlStatementDelete { 45 GdaSqlAnyPart any; 46 GdaSqlTable *table; 47 GdaSqlExpr *cond; 48 49 /*< private >*/ 50 /* Padding for future expansion */ 51 gpointer _gda_reserved1; 52 gpointer _gda_reserved2; 53 }; 54 55 /* 56 * Common operations 57 */ 58 GdaSqlStatementContentsInfo *_gda_sql_statement_delete_get_infos (void); 59 60 /* 61 * Functions used by the parser 62 */ 63 void gda_sql_statement_delete_take_table_name (GdaSqlStatement *stmt, GValue *value); 64 void gda_sql_statement_delete_take_condition (GdaSqlStatement *stmt, GdaSqlExpr *cond); 65 66 G_END_DECLS 67 68 #endif 69