4 ms·
The "here document" (<<EOS) is a nice workaround to keep from having to correctly quote a bunch of SQL syntax. I do agree, though, with some of the other comme
by tyingq 5y ago
The "here document" (<<EOS) is a nice workaround to keep from having to correctly quote a bunch of SQL syntax.
I do agree, though, with some of the other comments that you will probably want a "real language" other than bash if this grows at all. Passing in string data for a where clause, for example, would get cumbersome and error prone.
Python or Perl would be good choices if it goes there.
- chmaynard 5y agoI wasn't aware that '<<' is a shell directive. That often happens when I mindlessly copy code snippets from somewhere else. https://tldp.org/LDP/abs/html/here-docs.html https://tldp.org/LDP/abs/html/here-docs.html