ConnectionSpec View code

A class defining all of the details needed to connect to a database.

Some database drivers may not require all of the parameters.

package

CMS

author

Robert Campbell

copyright

Copyright (c) 2015, Robert Campbell calguy1000@cmsmadesimple.org

since 2.2
param

The database connection type

param

The hostname to connect to.

param

The authentication username

param

The authentication password

param

The database name

param

The table name prefix.

param

The connection port

param

Wether or not to use persistent connections.

param

Enable debug mode.

Methods

valid() : boolean

Test if this connectionspec is valid.

Returns true if there is enough information to connect to the database.

Response

boolean