Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (15 sloc) 731 Bytes
* unit of work
* option echo for Database.new, adds a logger to STDOUT
* Database introspection. schema extraction and database dumping and copying.
* Add Dataset#update_or_create:
DB[:items].filter(:name => 'abc').update_or_create(:price => 100)
# equivalent to:
if (DB[:items].filter(:name => 'abc').update(:price => 100) < 1)
DB[:items] << {:name => 'abc', :price => 100}
MySQL also supports a REPLACE INTO syntax which does the same:
REPLACE INTO items SET price = 100 WHERE name = 'abc'
* Adapters:
frontbase, interbase (http://ruby-dbi.rubyforge.org/)
openbase (http://ruby-openbase.rubyforge.org)
* Sharding
* Generating an object graph from a result-set.
Jump to Line
Something went wrong with that request. Please try again.