Is there a way to just generate the sql queries from ClojureQL’s disj! conj! and update-in! functions, instead of executing them directly ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, these methods are directly executing their respective prepared statements. They are all pretty basic. For
conj!andupdate-in!, look atformatcall in theconj-rowsandupdate-valsfunctions that you can find inside the internal namespace:For
disj!, ClojureQL is using theclojure.java.jdbclibrarydelete-rowsfunction which contains:So basically
disj!get the ability to usejava.jdbc‘swith-naming-strategyandwith-quoted-identifiersmacros for the table name while the other don’t.