Re: [racket-users] How do db handles interact with threads and parameters

2017-07-24 Thread Ryan Culpepper
On 7/24/17 9:11 AM, George Neuner wrote: Hi David, On 7/24/2017 8:18 AM, David Storrs wrote: What happens in the following code? (define dbh (postgresql-connect ...)) ;; Use the DBH in a new thread (thread (thunk (while ...some long-running condition... (sleep 1) ; don't flood the DB

Re: [racket-users] How do db handles interact with threads and parameters

2017-07-24 Thread David Storrs
On Mon, Jul 24, 2017 at 9:11 AM, George Neuner wrote: > Hi David, > > On 7/24/2017 8:18 AM, David Storrs wrote: > > What happens in the following code? > > (define dbh (postgresql-connect ...)) > > ;; Use the DBH in a new thread > (thread (thunk > (while ...some long-running condition... >

Re: [racket-users] How do db handles interact with threads and parameters

2017-07-24 Thread George Neuner
Hi David, On 7/24/2017 8:18 AM, David Storrs wrote: What happens in the following code? (define dbh (postgresql-connect ...)) ;; Use the DBH in a new thread (thread (thunk (while ...some long-running condition... (sleep 1) ; don't flood the DB (query-exec dbh "insert into users ...")

[racket-users] How do db handles interact with threads and parameters

2017-07-24 Thread David Storrs
What happens in the following code? (define dbh (postgresql-connect ...)) ;; Use the DBH in a new thread (thread (thunk (while ...some long-running condition... (sleep 1) ; don't flood the DB (query-exec dbh "insert into users ..." ;; And in the main thread (query-exec dbh ...) I