Closed petermeissner closed 6 years ago
@krlmlr suggested making this a S4 method. If you like the idea of the operator per se I can write up the S4 code (and make a pull request?).
As discussed in https://github.com/ankane/dbx/issues/5 this is out of scope of the package (for now) - hence I close the issue.
(I moved this over from https://github.com/r-dbi/DBI/issues/260 ... since @krlmlr tries to keep features of the DBI package in reign this package appears to be the right place)
The Problem
Writing SQL is a lot of pasting-together strings. The SQL() function provides a nice entry point to mark character vectors as SQL (which will result in nicer printing).
If we have a way to mark text as SQL would it not be nice to be able to do something 'simply' put together parts of an SQL-statement in an easy manner?
The Solution
SQL() in combination with overloading the plus operator might bring a lot of productivity gain here.