Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Teleservice/cakephp-mssql-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP MsSQL Linux Plugin

CakePHP MsSQL plugin for linux

Requirements

NodeJS v0.12

Installation

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

Configuration

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>

Try it out

All tests should now successfully run and afterwards you can just add some more connections that uses the MsSQLLinux Node Driver.

License

GNU General Public License, version 3

About

CakePHP MSSQL plugin for linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages