Drizzled Public API Documentation

copy_info.h
00001 /* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2011 Brian Aker
00005  *  Copyright (C) 2008 Sun Microsystems, Inc.
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; version 2 of the License.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #pragma once
00022 
00023 #include <drizzled/base.h>
00024 #include <drizzled/sql_list.h>
00025 
00026 namespace drizzled {
00027 
00040 class CopyInfo 
00041 {
00042 public:
00043   ha_rows records; 
00044   ha_rows deleted; 
00045   ha_rows updated; 
00046   ha_rows copied;  
00047   ha_rows error_count;
00048   ha_rows touched; /* Number of touched records */
00049   enum enum_duplicates handle_duplicates;
00050   int escape_char, last_errno;
00051   bool ignore;
00052   /* for INSERT ... UPDATE */
00053   List<Item> *update_fields;
00054   List<Item> *update_values;
00055   /* for VIEW ... WITH CHECK OPTION */
00056 
00057   CopyInfo() :
00058     records(0),
00059     deleted(0),
00060     updated(0),
00061     copied(0),
00062     error_count(0),
00063     touched(0),
00064     escape_char(0),
00065     last_errno(0),
00066     ignore(0),
00067     update_fields(0),
00068     update_values(0)
00069   { }
00070 };
00071 
00072 
00073 } /* namespace drizzled */
00074