~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleimport.cc

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  Copyright (C) 2010 Vijay Samuel
3
3
  Copyright (C) 2010 Brian Aker
4
4
  Copyright (C) 2000-2006 MySQL AB
5
 
  Copyright (C) 2008-2009 Sun Microsystems, Inc
 
5
  Copyright (C) 2008-2009 Sun Microsystems, Inc.
6
6
 
7
7
  This program is free software; you can redistribute it and/or modify
8
8
  it under the terms of the GNU General Public License as published by
39
39
 
40
40
int exitcode= 0;
41
41
 
42
 
const char *program_name= "drizzlesimport";
 
42
const char *program_name= "drizzleimport";
43
43
 
44
44
/* Global Thread counter */
45
45
uint32_t counter;
397
397
  "Load files in parallel. The argument is the number of threads to use for loading data (default is 4.")
398
398
  ;
399
399
 
 
400
  const char* unix_user= getlogin();
 
401
 
400
402
  po::options_description client_options("Options specific to the client");
401
403
  client_options.add_options()
402
404
  ("host,h", po::value<string>(&current_host)->default_value("localhost"),
407
409
  "Port number to use for connection") 
408
410
  ("protocol", po::value<string>(&opt_protocol)->default_value("mysql"),
409
411
  "The protocol of connection (mysql or drizzle).")
410
 
  ("user,u", po::value<string>(&current_user)->default_value(""),
 
412
  ("user,u", po::value<string>(&current_user)->default_value((unix_user ? unix_user : "")),
411
413
  "User for login if not current user.")
412
414
  ;
413
415