On Monday, September 15, 2014 7:25:13 AM UTC-7, Marcio Andrey Oliveira wrote: > > I'm reading Sequel docs but I failed to find a way to another schema than > public on PostgreSQL. > > > I have many schema (account, admin, reports) in the same database. > > How can I access tables inside different schema using Sequel on same > application? > > I mean, > > to insert data in a table that pertains to one schema like > > insert some data into accounts.users > > and get a report of last logins from table in another schema as > > select some data from reports.last_logins > > Thank you all. >
You just need to qualify the table. You can use the embedded underscore symbol notation to do this: :reports__last_logins or you can use the Sequel qualify: Sequel.qualify(:accounts, :users) 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.
