You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sources::DB.new('SELECT id, title, author, isbn13 as isbn FROM books',:file=>'app/db.yml')Sources::DB.new('SELECT id, title, author, isbn13 as isbn FROM books',active_records_configuration_options_hash)
You can use join statements etc. (The :file option points to a yml with an active record config hash)
Then, reference your columns by their names in the fields:
Sources::DB.new('SELECT id, title, author, isbn13 as isbn FROM books',:file=>'app/db.yml'),field(:isbn),field(:title),# ...