Bendsoft has now bundled a new tool called CamelotSql with the Camelot .NET Connector.
CamelotSql is a simple, yet quite powerful command line tool for executing SQL statements into SharePoint 2007 through 2013 including Office 365. It is bundled with the Camelot .NET Connector 3.0 and available for .NET 4.
It supports interactive and noninteractive use enabling scripting and backup/export possibilities to CSV, TSV, XML and HTML formats or binary files from document libraries.
For more reading see our online document here.