On Nov 4, 3:41 pm, Sunny Hirai <[EMAIL PROTECTED]> wrote: > Hi Jeremy, > > Thanks for the response. Unfortunately, Symbol#identifier doesn't work > as mentioned in the original post. It will create the table but it > seems like it fails in some other method like #insert or #update or > #filter or something. Not sure where as it just stopped responding and > I didn't do a section by section test.
Obviously, I need tracebacks and example code to show where things break if you would like me to fix these issues. > I've added a bunch of features to Sequel (planned open sourcing later) > and one of them is namespacing. So, for example, you can take a > database object and namespace it something like this: > > namespaced_database = database['john_doe'] > > You can then create a dataset out of it by giving the database a > model. > > namespaced_database.dataset( ProductModel ) > > ProductModel is configured to be named "products" > > The dataset will point to a table named "john_doe__products". > > The benefit of this is that you can reuse a model within the same > database. For example, I can have both a "john_doe__products" and a > "jane_doe__products" table that are different but use the same model. > > I use the underscore to prevent naming conflicts. For example, another > database may be namespaced "john" and "joe" and would result in > "john__doe__products" which is different from "john_doe__products". > > So in other words, this isn't to support basic table names but rather > "name spaced" table names. If you are using PostgreSQL, Sequel 2.7 has much better support for using schemas, which is probably what you should be using if you want to do this sort of thing. Jeremy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
