The SQLite3 base is a bit different than the other clients, in that it may be run on both the client and server. So add another layer to the prototype chain.
Extends the standard sql grammar, with any SQLite specific dialect oddities.
The keyword identifier wrapper format.
Compile the "order by" portions of the query.
Compile an insert statement into SQL.
If there are any "where" clauses, we need to omit any bindings that may have been associated with them.
If there is only one record being inserted, we will just use the usual query grammar insert builder because no special syntax is needed for the single row inserts in SQLite. However, if there are multiples, we'll continue.
SQLite requires us to build the multi-row insert as a listing of select with unions joining them together. So we'll build out this list of columns and then join them all together with select unions to complete the queries.
Compile a truncate table statement into SQL.
SQLite3 Grammar