Rails and Databases
The examples in this book were written using SQLite 3 (version 3.43.2 or thereabouts). If you want to follow along with our code, it’s probably simplest if you use SQLite 3 as well. If you decide to use something else, it won’t be a major problem. You may have to make minor adjustments to any explicit SQL in our code, but Rails pretty much eliminates database-specific SQL from applications.
If you want to connect to a database other than SQLite 3, Rails also works with MySQL, trilogy, PostgreSQL, Oracle, SQLServer, JDBC My SQL, JDBC Sqlite3, JDBC PostgreSQL, and just plain JDBC. For all but SQLite 3, you’ll need to install a database driver—a library that Rails can use to connect to and use with your database engine. This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access