Simon Fell > Its just code > - a BeatBox sample

Tuesday, February 21, 2006, this is small yet complete sample that uses BeatBox to run queries and extract data from into CSV files.

You can either specify just an object name, in which case it'll call describe to find out all the fields and build the SOQL to fetch everything, or you can pass in a complete soql statement yourself, e.g. password event or password "select id, subject from event"