Re: validation_helpers

2023-10-29 Thread Michael Granger
. -- 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 discussion on the web vi

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

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

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

Re: Inspect Output for Subclasses of Core Classes

2017-02-04 Thread Michael Granger
ped 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 <rubym...@gmail.com> -- You received this message because you are subscribed to the Google Groups &quo

Re: Sequel passes 1 million gem downloads

2013-02-22 Thread Michael Granger
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 g...@faeriemud.org Rubymage, Architect, Believer The FaerieMUD Consortium http://faeriemud.org/ -- You received this message because

Re: concurrency issue..

2013-02-22 Thread Michael Granger
: # 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 g...@faeriemud.org Rubymage, Architect

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 projects in which I want to use Sequel

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
again, which correctly started the results over, and changing the COPY to 'WITH ( FORMAT text )' instead, which did the same. -- Michael Granger rubym...@gmail.com http://deveiate.org/ -- You received this message because you are subscribed to the Google Groups sequel-talk group. To post

Re: Getting stuff directly from postgresql

2011-09-18 Thread Michael Granger
added PostgreSQL copy support to my todo list. I'm not sure I'll have time to implement it before 3.28.0, but hopefully it'll be in by 3.29.0. Excellent! I'm looking forward to it. -- Michael Granger rubym...@gmail.com http://deveiate.org/ -- You received this message because you are subscribed

Re: Getting stuff directly from postgresql

2011-09-16 Thread Michael Granger
) while buf = conn.get_copy_data I'll be adding an example of this under the samples/ directory of the gem shortly. -- Michael Granger rubym...@gmail.com http://deveiate.org/ -- You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group

Re: Getting an arbitrary amount of OR'd conditions

2011-09-16 Thread Michael Granger
#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 query with that, and inject the rest. -- Michael Granger rubym...@gmail.com http

Re: Postgresql prepared statement -- sequel documentation question

2011-09-16 Thread Michael Granger
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 rubym...@gmail.com http://deveiate.org/ -- You received this message because you

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. -- Michael Granger rubym

Re: Getting stuff directly from postgresql

2011-09-16 Thread Michael Granger
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 rubym...@gmail.com http://deveiate.org/ -- You received this message because you are subscribed to the Google Groups sequel

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 rubym...@gmail.com 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 toe back into RoR

Re: Advice regarding starting with Sequel ...

2011-02-25 Thread Michael Granger
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 rubym...@gmail.com http://deveiate.org/ -- You received this message because you are subscribed