CakePHP MsSQL plugin for linux
NodeJS v0.12
Add this to your composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/teleservice/cakephp-mssql-linux.git"
}
],
"require": {
"teleservice/mssql-linux": "*",
}
}
afterwards inside of your project folder, run the following
$ composer install
In your app.php add the following to Datasources
'test_mssql' => [
'className' => 'Cake\Database\Connection',
'driver' => 'MsSQLLinux\Database\Driver\Node',
'persistent' => false,
'host' => '<IP TO MsSQL Server>',
'username' => '<MsSQL USERNAME>',
'password' => '<MsSQL PASSWORD>',
'database' => 'tests',
'encoding' => 'utf8',
'timezone' => 'UTC',
'cacheMetadata' => true,
'quoteIdentifiers' => false,
],
Replace the <> with something that correspond to your settings. and afterwards make sure the user has read, write and create access to the test database.
Add the following to the end of your bootstrap.php file
Plugin::load('MsSQLLinux', ['bootstrap' => true]);
Add this to your phpunit.xml.dist
<testsuite name="MsSQLLinux Plugin Test Suite">
<directory>./vendor/teleservice/mssql-linux/tests/TestCase</directory>
</testsuite>
All tests should now successfully run and afterwards you can just add some more connections that uses the MsSQLLinux Node Driver.
GNU General Public License, version 3