pwtools.sql.SQLiteDB.add_column

SQLiteDB.add_column(col, sqltype, table=None)[source]

Add column col with type sqltype to the header. To actually put data into that, use execute() and standard sql statements or see attach_column() or fill_column().

Parameters:
  • col (str) – column name

  • sqltype (str) – sqlite data type (see SQLEntry)

  • table (str, optional) –