Prev | Current Page 62 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

Some platforms require that you set this to localhost
when connecting to a local Firebird instance through a database alias.
port: Optional parameter containing the port on which the database is available for connections.
This parameter is required only if the database is only available on a nonstandard port
and the service parameter is not provided. If the service parameter is provided, this value
will not be used.
service: Optional parameter containing the service name. This parameter is required only
if the host parameter is set and you are connecting to a nonstandard service.
charset: Optional parameter containing the character set that should be used for this connection.
You should refer to your Firebird documentation for the valid values that can be
used with this parameter.
The following example shows how to open an Active Record database connection for Firebird:
ActiveRecord::Base.establish_connection(:adapter => "firebird",
:database => "test", :host => "www.yourdbserver.com",
:username => "kevin", :password => "test")
FrontBase Parameters
The minimum FrontBase requirements are the adapter, database, and port parameters.


Pages:
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74