Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- articles = BrokenRecord::Table.new(:name => "articles",
- :db => BrokenRecord.database)
- articles.insert(:body => "Hey joe", :title => "blah")
- articles.delete(:id => 10)
- articles.columns
- (return array of hashes)
- articles.all
- (select * from articles), returns an array of hashes
- articles.where(:id => 10)
Add Comment
Please, Sign In to add comment