~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_load.h

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_SQL_LOAD_H
21
 
#define DRIZZLED_SQL_LOAD_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/definitions.h>
24
23
#include <drizzled/sql_list.h>
25
24
#include <drizzled/item.h>
26
25
 
27
 
class TableList;
28
 
class sql_exchange;
29
 
class Session;
30
 
class Table;
31
 
 
32
 
typedef struct st_copy_info COPY_INFO;
33
 
 
34
 
int mysql_load(Session *session, sql_exchange *ex, TableList *table_list,
 
26
namespace drizzled {
 
27
 
 
28
int load(Session *session, file_exchange *ex, TableList *table_list,
35
29
               List<Item> &fields_vars, List<Item> &set_fields,
36
30
               List<Item> &set_values_list,
37
 
               enum enum_duplicates handle_duplicates, bool ignore,
38
 
               bool local_file);
39
 
int write_record(Session *session, Table *table, COPY_INFO *info);
40
 
 
41
 
 
42
 
#endif /* DRIZZLED_SQL_LOAD_H */
 
31
               enum enum_duplicates handle_duplicates, bool ignore);
 
32
    
 
33
int write_record(Session *session, Table *table, CopyInfo *info);
 
34
 
 
35
} /* namespace drizzled */
 
36