My primary motivation is for smoother development. Both the editors I use 
have good SQL modes that do more than just highlighting - they take care of 
schema exploration, autocomplete, indentation, memorising bind parameters, 
previewing results, etc. I want to use them to develop a SQL query as a 
separate entity, check it, and then wire it into the app later.
(I also like keeping the file separate so that down the line I can easily 
do things like add "EXPLAIN" as the first line, and see what the query plan 
is.)

Syntax highlighting is a nice to have. And I've looked in that 
direction<https://github.com/krisajenkins/vim-java-sql>
 in earlier explorations <https://github.com/krisajenkins/vim-clojure-sql> of 
the problem. For my money it's left wanting. It's better to make both 
languages first class citizens. There's no getting away from the fact that 
they're separate languages which are strong in their own domains, and are 
just begging for a cleaner connection point.

On Monday, 11 November 2013 23:01:19 UTC, Brian Craft wrote:
>
> What prevents you from formatting the example with the clojure string of 
> sql like the example with the separate file of sql? Is the separate file 
> just for the sake of syntax highlighting? 
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to