namespace \webfiori\database
class ConnectionInfo
Class Attributes Summary
Class Methods Summary
Class Attributes Details
- mysql
- mssql
Class Methods Details
Parameters:
- string $databaseType Name of the database at which the connection is for. Can be 'mysql' or 'mssql'.
- string $user The username of the user that will be used to access the database.
- string $pass The password of the user.
- string $dbname The name of the database.
- string $host The address of database host or server name.
- int $port Port number that will be used to access database server. In case of 'mysql', default is 3306. In case of 'mssql', default is 1433.
- array $extras An array that can have extra information at which the connection might need.
Parameters:
- string $name The name of the database.
Sets the type of the database. The value is used to select the correct query builder for the database. Supported values are:
- mysql
Parameters:
- string $type Database type such as 'mysql' or 'maria-db'.
Parameters:
- array $array An array that contains any extra connection information.
Parameters:
- string $hostAddr The address of database host.
Parameters:
- string $newName The new name. Must be non-empty string.
Parameters:
- string $password A string that represents the password of the user.
Parameters:
- int $portNum Server port number. It will be set only if the given value is greater than 0.
Parameters:
- string $user A string that represents the username.