On Thursday, October 22, 2015 at 1:45:54 AM UTC-7, Pietro wrote: > > Got it, thanks. That shouldn't be a problem since tests use predefined > data. You've got a point though, defining the accessors manually feels a > little hackish, maybe it would be better to just mock/stub them when > testing the models, would that work without messing with some other feature? > > Let me also ask just one more thing: I noticed that for each defined model > Sequel makes a seemingly random SELECT query just after establishing a > connection to the database, it seems like a check to see if there are any > rows but why it that necessary? >
It's used to get the columns for the table in order to define the column accessors. Thanks, Jeremy -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
