Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-07 Thread Gary Johnson
defqueries for the win!

Excellent minimal syntax choice, Kris. I'm using yesql in my current work 
project, and it's been a real delight to work with thus far. Being able to 
put multiple queries in one file just makes it that much sweeter.

  ~Gary

On Tuesday, January 7, 2014 10:57:55 AM UTC-5, Kris Jenkins wrote:
>
> Yesql is a simple library for blending SQL queries & Clojure together, 
> cleanly. Here's how it 
> works, 
> and how to use it .
>
> Project: https://github.com/krisajenkins/yesql
> Leiningen: [yesql "0.3.0"]
>
> New since v0.2.x: Support for multiple queries in a single file.
>
> Feedback welcomed,
> Kris
>

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-07 Thread Benjamin Yu
You just gave me a great solution to the sql pain points I've been having.

On Tue, Jan 7, 2014 at 10:30 AM, Gary Johnson  wrote:
> defqueries for the win!
>
> Excellent minimal syntax choice, Kris. I'm using yesql in my current work
> project, and it's been a real delight to work with thus far. Being able to
> put multiple queries in one file just makes it that much sweeter.
>
>   ~Gary
>
>
> On Tuesday, January 7, 2014 10:57:55 AM UTC-5, Kris Jenkins wrote:
>>
>> Yesql is a simple library for blending SQL queries & Clojure together,
>> cleanly. Here's how it works, and how to use it.
>>
>> Project: https://github.com/krisajenkins/yesql
>> Leiningen: [yesql "0.3.0"]
>>
>> New since v0.2.x: Support for multiple queries in a single file.
>>
>> Feedback welcomed,
>> Kris
>
> --
> --
> 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.

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-07 Thread Luc Prefontaine
This lib is a perfect fit here, we create
adapter plugins for databases 
of various software suppliers.

Being able to load the queries as
resources is absolutely in line
with how we handle these plugins,
as optional configurable dynamically
loadable components.

Combined with views to return
EDN data compliant with our
business model it simplifies the
support of these plugins.

Thank you, great idea :)

Luc P.


> Yesql is a simple library for blending SQL queries & Clojure together, 
> cleanly. Here's how it 
> works, 
> and how to use it .
> 
> Project: https://github.com/krisajenkins/yesql
> Leiningen: [yesql "0.3.0"]
> 
> New since v0.2.x: Support for multiple queries in a single file.
> 
> Feedback welcomed,
> Kris
> 
> -- 
> -- 
> 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.
> 
--
Luc Prefontaine sent by ibisMail!

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-07 Thread Alexandr Kurilin
This is neat, I'll need to give this a shot.

Our application involves a lot of OLAP-style queries and I currently have
several DAL namespaces of  clojure.jdbc with 30+ lines of SQL query in
them, which is pretty nasty to look at. This should clean up things nicely.


On Tue, Jan 7, 2014 at 4:26 PM, Marco Shimomoto  wrote:

> It looks great and I will try it.
> Have you thought about namespaces and different database implementations?
> Something like a general repository for SQL files and some vendor specific
> override repositories.
>
> --
> --
> 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.
>



-- 
Alexandr Kurilin
206.687.8740 | @alex_kurilin  |
blog

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-09 Thread Kris Jenkins
Thanks Gary - I'm glad to hear it's working well for you. And thanks for 
your thoughts on the v0.2.0 release - they helped shape this version. :-)

Kris

On Tuesday, 7 January 2014 18:30:49 UTC, Gary Johnson wrote:
>
> defqueries for the win!
>
> Excellent minimal syntax choice, Kris. I'm using yesql in my current work 
> project, and it's been a real delight to work with thus far. Being able to 
> put multiple queries in one file just makes it that much sweeter.
>
>   ~Gary
>
> On Tuesday, January 7, 2014 10:57:55 AM UTC-5, Kris Jenkins wrote:
>>
>> Yesql is a simple library for blending SQL queries & Clojure together, 
>> cleanly. Here's how it 
>> works, 
>> and how to use it .
>>
>> Project: https://github.com/krisajenkins/yesql
>> Leiningen: [yesql "0.3.0"]
>>
>> New since v0.2.x: Support for multiple queries in a single file.
>>
>> Feedback welcomed,
>> Kris
>>
>

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-09 Thread Kris Jenkins
Hmm...I'll have to mull that one. I have been thinking that I'm going to 
leave the whole issue of namespaces to Clojure, and let the call-site of 
(defqueries) decide. But I'll have to think it through some more. :-)

Kris

On Wednesday, 8 January 2014 00:26:58 UTC, Marco Shimomoto wrote:
>
> It looks great and I will try it.
> Have you thought about namespaces and different database implementations? 
> Something like a general repository for SQL files and some vendor specific 
> override repositories.

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-20 Thread Alexandr Kurilin
I might have missed this in the docs, but is there support for c.j.j's
optional keyword arguments such as :row-fn and :identifiers? I couldn't
quite figure out how to get that to work with yesql, as far as I can tell
you can only pass query parameters at this point.


On Thu, Jan 9, 2014 at 3:00 PM, Kris Jenkins  wrote:

> Hmm...I'll have to mull that one. I have been thinking that I'm going to
> leave the whole issue of namespaces to Clojure, and let the call-site of
> (defqueries) decide. But I'll have to think it through some more. :-)
>
> Kris
>
> On Wednesday, 8 January 2014 00:26:58 UTC, Marco Shimomoto wrote:
>>
>> It looks great and I will try it.
>> Have you thought about namespaces and different database implementations?
>> Something like a general repository for SQL files and some vendor
>> specific override repositories.
>
>  --
> --
> 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.
>



-- 
Alexandr Kurilin
206.687.8740 | @alex_kurilin  |
blog

-- 
-- 
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.


Re: [ANN] Yesql 0.3.0 - Clojure & SQL queries rethought.

2014-01-21 Thread tonihe
This is amazing. Any hope for INSERTs and so on? Currently only possible 
using postgres RETURNING clause

On Tuesday, January 7, 2014 4:57:55 PM UTC+1, Kris Jenkins wrote:
>
> Yesql is a simple library for blending SQL queries & Clojure together, 
> cleanly. Here's how it 
> works, 
> and how to use it .
>
> Project: https://github.com/krisajenkins/yesql
> Leiningen: [yesql "0.3.0"]
>
> New since v0.2.x: Support for multiple queries in a single file.
>
> Feedback welcomed,
> Kris
>

-- 
-- 
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.