def main(database):

    print('This script will generate a file named tablelist.csv.\n This list '
          'contains all of the tables in the indicated database.\n If there '
          'are any tables in the list that you do not want to include in the '
          'consolidated dataset, \n please remove them from this list.' )

    c = Controller(database)

    try:
        c.action_write_table_list_to_csv()

    except:
        "An error occurred while generating the tablelist.csv file"
Exemplo n.º 2
0
 def test_sqlalchemy_write_table_names_to_csv(self):
     c = Controller('db_antonio_india')
     c.action_write_table_list_to_csv()