Hey guys!

I'm working in a codebase whose purpose is integration a billing software 
with a CRM one. As it's an integration between this two softwares, I have 
to mantain two opened connections with two distinct databases at the same 
time. In order to achieve that, I've created a connections handler class.

Some models must be connected to one database, and some models must be 
connected to another. So, I'm making use of the "set_dataset" class method:

class Customer < Sequel::Model
  set_dataset ConnectionsHandler.crm[:customers]
end

class Message < Sequel::Model
  set_dataset ConnectionsHandler.billing[:messages]
end

But when I start my application, I'm seeing the following warning:

"SEQUEL DEPRECATION WARNING: Setting a model class dataset to an invalid 
dataset is deprecated and will be removed in Sequel 5.  Either use a valid 
dataset or set require_valid_table = false for the model class."

As told by Jeremy Evans at the issue #1376, this message is intended to 
help with the code refactoring. But what do I have to change in order to 
make this message disappear?

PS: When running this code with version 4.43.0, the message is not shown.

-- 
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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to