Using InterBase
Use InterBase to benefit from its multi-generational architecture,
log-based journaling and disaster recovery features.
A small footprint, automatic crash recovery,
self-tuning, Unicode, SMP support, SQL 92 compliance,
and near zero maintenance makes
InterBase 2007 the ideal database for embedded and business-critical
small-to-medium enterprise server applications.
Connect to and use InterBase to serve a project using the ibrails_plugin gem.
-
Navigate to the CodeGear
Trial
and Free Versions website. Select the InterBase
Developer version for the desired operating system.
-
Provide the required information to activate the
software and an email with the license and activation
key will be sent to the provided address.
-
Install InterBase from the 3rdRail product master installer.
Note:
|
At the prompt
remove the default
option by clicking to remove the check mark from the
checkbox. This disables the registration screen
that will prompt for a license and activation. The
file provided via email nulls this requirement when
properly added the
directory as described below.
|
-
Save the license file to the following path (path may vary
depending on OS and install preferences):
-
The Rails runtime packaged with 3rdRail includes the database driver for
InterBase. Use the runtime provided with 3rdRail or add the driver manually by
installing the following gem from the
or OS command line:
gem install ibruby
Create a Rails Project using InterBase:
-
Create a rails project using the ,
select InterBase as the database type:
New Rails Project Wizard
From the workbench select:
-
Name the project and select
The project in now configured to use InterBase as the
database client.
Configuration Details
-
From the navigate to
the project configuration file:
-
Double-click the
file to open it in the .
Provide the user name and password and the correct
database path.
If the path exists the empty database will be created automatically.
-
To create the empty database manually:
C:\Users\{username}>isql -u sysdba -p masterkey
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database "c:\home\foo.ib";
Using InterBase on an Existing Project:
-
If the ibruby gem (the InterBase database driver) is not installed
use the or OS command line to
install:
gem install ibruby
Note:
|
Use “gem list” to view a list of installed gems.
|
-
Open the project in the and
install the plug-in From the project's enter:
script/plugin install http://ibruby.rubyforge.org/svn/ rails_plugins/trunk/ibrails_plugin
-
Edit the database.yml file to ensure the database name and user name/password are correct.
Related Concepts
InterBase Guide in PDF format
CodeGear brand
and product names are service marks, trademarks or registered trademarks of Borland Software
Corporation in the United States and other countries.