python-elixir

dump csv from sqlalchemy

dump csv from sqlalchemy Question: For some reason, I want to dump a table from a database (sqlite3) in the form of a csv file. I’m using a python script with elixir (based on sqlalchemy) to modify the database. I was wondering if there is any way to dump the table I use to csv. …

Total answers: 8

Selecting distinct column values in SQLAlchemy/Elixir

Selecting distinct column values in SQLAlchemy/Elixir Question: In a little script I’m writing using SQLAlchemy and Elixir, I need to get all the distinct values for a particular column. In ordinary SQL it’d be a simple matter of SELECT DISTINCT `column` FROM `table`; and I know I could just run that query “manually,” but I’d …

Total answers: 6