This document explains the procedure to use Posql as a database (DBO driver) from CakePHP that is PHP framework.
Posql is database engine (DBMS) of pure PHP. Refer to Posql SQL Reference for a detailed outline and the supported SQL grammar if you want more informations.
From Posql Version 2.09. DBO driver 'dbo_posql.php' to be able to use Posql with CakePHP and the configuration file etc are bundled to the package.
Posql current version is 2.17 stable.
There is a directory named CakePHP-DBO-Posql
in the Posql package, and it becomes target directory.
It becomes the following directory compositions.
CakePHP-DBO-Posql/cake/libs/model/datasources/dbo/dbo_posql.php
CakePHP-DBO-Posql/app/config/database.php.posql
CakePHP-DBO-Posql/app/vendors/posql/posql.php
Note: The composition of the directory in CakePHP-DBO-Posql is the same as the CakePHP framework.
It becomes setting on the CakePHP framework side after this.
app/config/database.php.posql
Rename to original 'database.php' a suitable filename and it to backup.var $default = array( 'driver' => 'posql', 'persistent' => false, 'host' => '', 'login' => '', 'password' => '', 'database' => '../vendors/posql/database_name.php', 'prefix' => '', );
'../vendors/posql/database_name.php'
Look the part the key is 'database'. This becomes the file path of the database. In default, it is set to the same directory as main class file 'posql.php' by the relative path.Only a minimum test is done though the Posql driver is taken to confirm the operation. A complex SQL statement is not tested. There is a trouble possibility when SQL sentence is originally issued. Please try in consideration of the respect.
Post from the forum in GitHub - Posql if there are a demand, an impression, trouble, and a bug report, etc.