laravel-commando
laravel-commando copied to clipboard
More Database Drivers
@vkovic correct me if I'm wrong... Only the MySQL Database driver is available. I want to create a database in SQL Server. Is it available already? If not, are planning to add it soon?
@undjike Hey there - yep you're right, only MySql for the time being.
On the other hand, everything is ready for other handlers to be implemented, there where just not enough time.
Take a look into src/Handlers/Database/MySqlHandler.php to see how MySql handler is implemented - it's simple and
straight forward.
If you need some help i'll be glad to support, but I don't have enough time for implementation on my own.
Okay, I'll make a pull request as soon as possible.
Ok, as a jump start, you need to create SqlServerHandler class which will extend AbstractDbHandler class.
You're new class needs to implement following methods:
abstract public function databaseExists($database);
abstract public function createDatabase($database);
abstract public function dropDatabase($database);
abstract public function getColumns($database, $table);
... and it's should be easy from there ...