--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This is a common enough request that we should probably add a function that takes some raw SQL to be executed (or perhaps a list of SQL commands) each time a connection is created. I'm thinking of something like:createPostgresqlPoolExecute :: ConnectionString -> Int -> [Text] -> m ConnectionPool
Definitely a better generalization, thank you.
Definitely a better generalization, thank you.
On Fri, Mar 6, 2015, 6:16 PM Greg Weber <gr...@gregweber.info> wrote:
On Fri, Mar 6, 2015 at 12:34 AM, Michael Snoyman <mic...@snoyman.com> wrote:This is a common enough request that we should probably add a function that takes some raw SQL to be executed (or perhaps a list of SQL commands) each time a connection is created. I'm thinking of something like:createPostgresqlPoolExecute :: ConnectionString -> Int -> [Text] -> m ConnectionPoolBetter would be to have something a little more extensible that this can be created on top of.Perhaps something like `(Connection -> m ())` instead of `[Text]`.That starts to look like a general way to construct a pool and not anything specific to Postgres.
Anyone interested in taking a crack at that? If not, I can look into it some time next week.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+unsubscribe@googlegroups.com.