Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
CREATE TABLE ... SELECT ...
(#141)
* Heavily renormalizes available overloads of `where()`, `orWhere()`, `having()`, and `orHaving()` for `SQLSelectBuilder`, making them fully consistent with themselves and each other (with the exception of not providing the missing untyped `Encodable` overload for `where()` since it wasn't desirable to have it at all to begin with). Separates the `HAVING` predicate into its own secondary predicate builder. * Switch to using SQLStatement in SQLCreateTable serialization. * Add missing SQLSecondaryPredicateGroupBuilder counterpart to SQLPredicateGroupBuilder * Refactor most of SQLSelectBuilder into a SQLSubqueryClauseBuilder protocol. Despite all appearances to the contrary, the public API does not change (aside from gaining a couple of extra methods for consistency in the `where` and `having` method suites). * Add support for specifying `CREATE TABLE ... SELECT` queries. * Organize SQLKitTests.swift (and its async counterpart) a little. * Add async version of SQLKitTriggerTests for good measure * Also add support for MySQL's DROP TEMPORARY TABLE syntax, because it's there.
- Loading branch information