Re: validation_helpers

2023-10-29 Thread Michael Granger
mon validation tasks. -- Michael Granger -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To view this disc

Re: Heroku, Puma and Sequel connection problems

2018-01-19 Thread Michael Granger
On Friday, January 19, 2018 at 11:11:03 AM UTC-8, David Lazar wrote: > > Yes, I am familiar with all the Heroku docs. That document covers Resque > and Unicorn, whereas my problem at this time is with Puma. > Ah, my apologies. I didn't know you could run async jobs using Puma. Hope you find a s

Re: Heroku, Puma and Sequel connection problems

2018-01-19 Thread Michael Granger
On Friday, January 19, 2018 at 10:54:05 AM UTC-8, David Lazar wrote: > > > I am seeing this in a heroku worker. The first time the worker does a job, > it works. The second time, this error is thrown. So the solution is what? > To add to the worker_on_boot in Puma config and establish a connectio

Re: Heroku, Puma and Sequel connection problems

2018-01-19 Thread Michael Granger
On Friday, January 19, 2018 at 10:33:55 AM UTC-8, David Lazar wrote: > > My latest Apps deployed to Heroku are now experiencing errors I have not > seen before. Specifically, during worker tasks, the connection is > generating an error: > > ERROR -- : PG::ConnectionBad: PQconsumeInput() SSL error

Re: Inspect Output for Subclasses of Core Classes

2017-02-04 Thread Michael Granger
tripped me up several times, so this looks great to me. Even just making it clear that they're not core objects will be very helpful. The representations look great to me. -- Michael Granger -- You received this message because you are subscribed to the Google Groups "sequel-talk&quo

Re: concurrency issue..

2013-02-22 Thread Michael Granger
ng: # Called by every child on startup. def after_fork reset_file_descriptors #... end # Reconnect so we aren't using the parent's connection def reset_file_descriptors DB.synchronize do |conn| conn.reset end end -- Michael Granger Rubymage,

Re: Sequel passes 1 million gem downloads

2013-02-22 Thread Michael Granger
entation of each class. Many thanks for all your work, and to Sharon for the initial implementation. Sequel makes working with databases every day a pleasure. -- Michael Granger Rubymage, Architect, Believer The FaerieMUD Consortium <http://faeriemud.org/> -- You received this messag

Re: How do I extend Sequel::Model?

2012-05-30 Thread Michael Granger
> On Saturday, May 26, 2012 7:01:48 PM UTC-7, Jeremy Evans wrote: > > On Friday, May 25, 2012 1:28:43 PM UTC-7, Michael Granger wrote: > > Even though it's an unsupported use, subclassing Sequel::Model works quite > > well if you're careful. I do it in several

Re: How do I extend Sequel::Model?

2012-05-25 Thread Michael Granger
On Saturday, April 28, 2012 11:07:20 AM UTC-7, Johnny wrote: > How can I extend Sequel::Model? Every Sequel::Model subclass requires > a table, but I want all the models in my application to inherit from > one class, which won't have a backing table. How can I do this? > Even though it's an

Re: Getting stuff directly from postgresql

2011-09-18 Thread Michael Granger
Jeremy Evans wrote: On Sep 18, 1:22 pm, Michael Granger wrote: It ignores the previous results. I tried both the exact same query again, which correctly started the results over, and changing the COPY to 'WITH ( FORMAT text )' instead, which did the same. Awesome. I've added

Re: Getting stuff directly from postgresql

2011-09-18 Thread Michael Granger
Jeremy Evans wrote: On Sep 16, 6:03 pm, Michael Granger wrote: According to my experiments, abandoning the COPY in the middle doesn't have any adverse effects. Example script and the output from running it (with trace output):http://pastie.org/2545817 That's definitely a positive s

Re: Getting stuff directly from postgresql

2011-09-16 Thread Michael Granger
nts, abandoning the COPY in the middle doesn't have any adverse effects. Example script and the output from running it (with trace output): http://pastie.org/2545817 -- Michael Granger http://deveiate.org/ -- You received this message because you are subscribed to the Google Groups &qu

Re: Getting an arbitrary amount of OR'd conditions

2011-09-16 Thread Michael Granger
Jeremy Evans wrote: I'd recommend Dataset#grep: DB[:something].grep(:column, %w'%first% %second% %third %', :case_insensitive=>true) Wow. I've long ago given up the idea that I've seen everything cool Sequel can do, but this is going to be one of my favorites

Re: Postgresql prepared statement -- sequel documentation question

2011-09-16 Thread Michael Granger
s are always server side." What's meant by "default emulated support"? At the very bottom of that page it says: All Others Support is emulated using interpolation. I think that's what it's referring to. -- Michael Granger http://deveiate.org/ -- You re

Re: Getting an arbitrary amount of OR'd conditions

2011-09-16 Thread Michael Granger
's violating the 'protected' visibility of the Dataset#simple_select_all? method, but I'm not sure how to know when to use #or and when to use #filter otherwise. Suggestions, Jeremy? If you want to avoid the #send, you could always just unshift the first keyword, start your quer

Re: Getting stuff directly from postgresql

2011-09-16 Thread Michael Granger
sv" ) $stdout.puts( buf ) while buf = conn.get_copy_data I'll be adding an example of this under the samples/ directory of the gem shortly. -- Michael Granger http://deveiate.org/ -- You received this message because you are subscribed to the Google Groups "sequel-talk"

Re: Advice regarding starting with Sequel ...

2011-02-28 Thread Michael Granger
On 2/26/11 3:44 PM, Max Schubert wrote: > On Fri, Feb 25, 2011 at 7:24 PM, Michael Granger wrote: >> Also, once you've used Sequel, it's extremely frustrating to try to use >> AR for anything other than a simple objectstore. > > Our current project we are putting a

Re: Advice regarding starting with Sequel ...

2011-02-25 Thread Michael Granger
using the nice Sequel API and then tack > on my own custom stuff. That is a lot harder to do in AR. Also, once you've used Sequel, it's extremely frustrating to try to use AR for anything other than a simple objectstore. -- Michael Granger http://deveiate.org/ -- You received this m