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 {
00028 
00029 class Item;
00030 
00043 class CopyInfo 
00044 {
00045 public:
00046   ha_rows records; 
00047   ha_rows deleted; 
00048   ha_rows updated; 
00049   ha_rows copied;  
00050   ha_rows error_count;
00051   ha_rows touched; /* Number of touched records */
00052   enum enum_duplicates handle_duplicates;
00053   int escape_char, last_errno;
00054   bool ignore;
00055   /* for INSERT ... UPDATE */
00056   List<Item> *update_fields;
00057   List<Item> *update_values;
00058   /* for VIEW ... WITH CHECK OPTION */
00059 
00060   CopyInfo() :
00061     records(0),
00062     deleted(0),
00063     updated(0),
00064     copied(0),
00065     error_count(0),
00066     touched(0),
00067     escape_char(0),
00068     last_errno(0),
00069     ignore(0),
00070     update_fields(0),
00071     update_values(0)
00072   { }
00073 };
00074 
00075 
00076 } /* namespace drizzled */
00077