parameters: (self, p)
docstring: Add a paramter name to the database
docstring_summary: Add a paramter name to the database
docstring_tokens: Add a paramter name to the database
function: def __add_parameter(self, p):
          """Add a paramter name to the database
          """
          updated = False
          if p.startswith("FILE"):
              # this is an extract name
              if not self.extract_parameter_exists(p):
                  self.extractnames.append(p)
                  updated = True
  
          else:
              if not self.parameter_exists(p):
                  self.parameternames.append(p)
                  updated = True
  
          if updated:
              if not self.DBinitialized:
                  self.con.cursor().execute("CREATE TABLE {} ({} TEXT)".format(self.tablename, p))
                  self.DBinitialized = True
  
              else:
                  self.con.cursor().execute("ALTER TABLE {} ADD {} TEXT".format(self.tablename, p))
function_tokens: def __add_parameter ( self , p ) : updated = False if p . startswith ( "FILE" ) : # this is an extract name if not self . extract_parameter_exists ( p ) : self . extractnames . append ( p ) updated = True else : if not self . parameter_exists ( p ) : self . parameternames . append ( p ) updated = True if updated : if not self . DBinitialized : self . con . cursor ( ) . execute ( "CREATE TABLE {} ({} TEXT)" . format ( self . tablename , p ) ) self . DBinitialized = True else : self . con . cursor ( ) . execute ( "ALTER TABLE {} ADD {} TEXT" . format ( self . tablename , p ) )