~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-02-05 03:57:10 UTC
  • mto: This revision was merged to the branch mainline in revision 833.
  • Revision ID: brian@tangent.org-20090205035710-ka0eptz0wch3xj5p
Moved over file_exchange class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <drizzled/current_session.h>
34
34
#include <drizzled/sql_error.h>
35
35
#include <drizzled/query_arena.h>
 
36
#include <drizzled/file_exchange.h>
36
37
#include <string>
37
38
#include <bitset>
38
39
 
1439
1440
}
1440
1441
 
1441
1442
/*
1442
 
  Used to hold information about file and file structure in exchange
1443
 
  via non-DB file (...INTO OUTFILE..., ...LOAD DATA...)
1444
 
  XXX: We never call destructor for objects of this class.
1445
 
*/
1446
 
 
1447
 
class file_exchange :public Sql_alloc
1448
 
{
1449
 
public:
1450
 
  enum enum_filetype filetype; /* load XML, Added by Arnold & Erik */
1451
 
  char *file_name;
1452
 
  String *field_term,*enclosed,*line_term,*line_start,*escaped;
1453
 
  bool opt_enclosed;
1454
 
  bool dumpfile;
1455
 
  ulong skip_lines;
1456
 
  const CHARSET_INFO *cs;
1457
 
  file_exchange(char *name, bool dumpfile_flag,
1458
 
               enum_filetype filetype_arg= FILETYPE_CSV);
1459
 
};
1460
 
 
1461
 
/*
1462
1443
  This is used to get result from a select
1463
1444
*/
1464
1445