Prev | Current Page 448 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

Using a database-specific
library not only locks you into that database store, it generally locks you into a specific version
of that database. For example, there are different Ruby libraries for working with different versions
of Oracle (oracle for older version of Oracle, oci8 for Oracle 8i, and ruby9i for Oracle 9i).
This basically means that every time you update your database version, or switch to
a completely new database store, you will, at a minimum, need to update your databasespecific
library (and rewrite large sections of your application code, at a maximum). Using
database-specific libraries also has a lot of the same cons that we mentioned with using the
DBI library, the most important of which is the coupling of your code and SQL statements.
Active Resource
For a few years now, web services have been a hot topic. It??™s been only recently, though, that
many sites and services have started to actually implement web services as a core part of their
applications and feature sets. The Ruby on Rails framework is no exception.


Pages:
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460