LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Functions
lsst.datarel.mysqlExecutor Namespace Reference

Classes

class  MysqlExecutor
 

Functions

def addDbOptions
 

Function Documentation

def lsst.datarel.mysqlExecutor.addDbOptions (   parser)

Definition at line 137 of file mysqlExecutor.py.

138 def addDbOptions(parser):
139  if not isinstance(parser, argparse.ArgumentParser):
140  raise TypeError('Expecting an argparse.ArgumentParser')
141  defUser = (os.environ.has_key('USER') and os.environ['USER']) or None
142  parser.add_argument(
143  "--user", default=defUser, dest="user",
144  help="MySQL database user name (%(default)s).")
145  parser.add_argument(
146  "--host", default="lsst10.ncsa.uiuc.edu", dest="host",
147  help="MySQL database server hostname (%(default)s).")
148  parser.add_argument(
149  "--port", default=3306, type=int, dest="port",
150  help="MySQL database server port (%(default)d).")
151