I want to port some of my code from DBI to sequel.
Currently I have a class which holds a reference to an internal DBI database
connection but I thought as long as I am rewriting it I might consider
something a little more elegant.
What would be the recommended way to extend sequel. For example I would
like people to use my code like this.
db=DefaultDatabase.new(url)
db.for_each_customer_database { | db| do_something}
the idea is that my code knows where the default database server is, it
knows which databases in that server belongs to which customers etc...
Should I take the same approach as before and store the sequel connection as
a class variable? Should I monkeypatch? Should I mix the sequel module?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---