I asked about it on #yesod on irc and got pointed to this: https://groups.google.com/forum/#!topic/yesodweb/Kvjpf6PAQUQ. It doesn't seem to be possible at the moment.
On Fri, Jul 31, 2015, at 06:33 PM, Curtis Gagliardi wrote: > I assumed it'd be easy but I've been poking around looking for a way to > do that, the best thing I've seen is to get > the pgConnStr from the apps persistConfig and use that with > postgres-simple's "connectPostgreSQL" function, circumventing the pool. > Creating the connection every time probably isn't actually a big deal > though. > > something like: > > app <- getYesod > let connStr = pgConnStr . persistConfig $ app > conn <- liftIO $ connectPostgreSQL > ... etc > > let me know if you find something better > > > On Fri, Jul 31, 2015, at 03:59 PM, Bryan Richter wrote: > > On Fri, Jul 31, 2015 at 02:41:41PM -0700, Curtis Gagliardi wrote: > > > I'd probably drop down to postgres-simple and run that query as is. I > > > don't think the lack of typing needs to be a deal breaker if it's going > > > to be easier to write and easier to test. > > > > Oh, wow. Thanks for the tip. I will probably do that. Even after > > spending a few hours on this esqueleto, it will still save me time to > > switch. > > > > Just gotta figure out how to share database connection information... > > _______________________________________________ > > Dev mailing list > > Dev@lists.snowdrift.coop > > https://lists.snowdrift.coop/mailman/listinfo/dev > > Email had 1 attachment: > > + signature.asc > > 1k (application/pgp-signature) > _______________________________________________ > Dev mailing list > Dev@lists.snowdrift.coop > https://lists.snowdrift.coop/mailman/listinfo/dev _______________________________________________ Dev mailing list Dev@lists.snowdrift.coop https://lists.snowdrift.coop/mailman/listinfo/dev