This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake spec results: | |
| MySQL | |
| 102 examples, 1 failure, 1 pending | |
| Postgres | |
| 114 examples, 10 failures, 1 pending | |
| SQLite3 | |
| SQlite3 -- database locked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # As an exercise, come up with a ruby-way to specify | |
| # a set of search conditions for this SQL: | |
| # simple or | |
| # WHERE name = 'Dan' OR name = 'Paul' | |
| # nested or, plus duplicating field names | |
| # WHERE name = 'Paul' AND ( age < 18 OR age > 21 ) | |
| # not ( and don't say != ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include 'dm-is-list' | |
| class Node | |
| include DataMapper::Resource | |
| property :id, Serial | |
| # other properties... | |
| has n, :parts | |
| end |
NewerOlder