Return SQL as a string for the given query. If "pretty" is True, the SQL will be formatted (though not very well) with new lines and indentation.
(self, statement, pretty=False)
| 93 | 'IsNotNull': '({0}) IS NOT NULL'} |
| 94 | |
| 95 | def write_query(self, statement, pretty=False): |
| 96 | """ |
| 97 | Return SQL as a string for the given query. |
| 98 | |
| 99 | If "pretty" is True, the SQL will be formatted (though not very well) with new |
| 100 | lines and indentation. |
| 101 | """ |
| 102 | sql = self._write(statement) |
| 103 | if pretty: |
| 104 | sql = self.make_pretty_sql(sql) |
| 105 | return sql |
| 106 | |
| 107 | def _write_query(self, query): |
| 108 | """ |