Re: What have been your problems with Sequel?

2022-08-30 Thread Rob Galanakis
I want to echo what's been said here. Especially about it being the standard for all other ORMs. And fast. And flexible. And Jeremy is amazing (you should buy his book !). The big thing difference between Sequel and othe

Re: managing join table additional attributes

2021-09-06 Thread Rob Galanakis
Jeremy can answer authoritatively but AFAIK it does not exist and is a bit of an oxymoron- "join tables" as Sequel defines them are just a compound key; adding an additional attribute ceases to make them a join table. I'm not going to explain why you should use a separate model for this since yo

Re: managing join table additional attributes

2021-09-05 Thread Rob Galanakis
To me, that seems like you'd want a separate model, not a join table. - Rob On Saturday, September 4, 2021 at 5:41:11 PM UTC-7 John Knapp wrote: > I have a standard many_to_ many with a model for the join table. The join > table has an extra attribute, "quantity". > > class Plan < Sequel::Model

Re: Bulk Create for models?

2021-08-30 Thread Rob Galanakis
s I've worked in, or both). Thanks, Rob On Sun, Aug 29, 2021 at 10:28 PM Jeremy Evans wrote: > On Sun, Aug 29, 2021 at 8:48 PM Rob Galanakis wrote: > >> For now I went with something like this (my actual implementation isn't >> quite so general): >> >

Re: Bulk Create for models?

2021-08-29 Thread Rob Galanakis
;ve needed a Django-style bulk_create helper in 7 years of Sequel). - Rob On Sun, Aug 29, 2021 at 8:01 PM Jeremy Evans wrote: > On Sun, Aug 29, 2021 at 7:51 PM Rob Galanakis wrote: > >> I am trying to optimize some code to use bulk creation of models- on the >> order of do

Bulk Create for models?

2021-08-29 Thread Rob Galanakis
I am trying to optimize some code to use bulk creation of models- on the order of dozens, not hundreds, and I do still need models, so raw dataset methods aren't suitable. I don't see a way to do this with Sequel- we have Dataset#import and #multi_insert, and they can return an array of primary

Re: Add SQL comments in migrations

2021-03-03 Thread Rob Galanakis
e db in the first place? .run in migrations? this gem > https://rubygems.org/gems/sequel-pg-comment? another gem? Custom code? > > Thanks again > > On Wed, Mar 3, 2021 at 4:13 AM Rob Galanakis wrote: > >> :michael_jackson_popcorn_gif: >> >> Way to go! (I added the

Re: Add SQL comments in migrations

2021-03-03 Thread Rob Galanakis
:michael_jackson_popcorn_gif: Way to go! (I added the column comment support) On Tuesday, March 2, 2021 at 5:09:31 PM UTC-8 mark@vydia.com wrote: > Thanks Jeremy, I just opened up > https://github.com/jeremyevans/sequel-annotate/pull/21 > > On Tue, Mar 2, 2021 at 2:39 PM Jeremy Evans wrote

Re: Fork Safety guide

2020-11-03 Thread Rob Galanakis
This would be super useful- speaking from experience, it'd also be great to include `Parallel` gem/direct fork usage. On Tuesday, November 3, 2020 at 7:08:57 AM UTC-8 Jeremy Evans wrote: > On Mon, Nov 2, 2020 at 11:46 PM Janko Marohnić > wrote: > >> Hi Jeremy, >> >> I would like to contribute