brstuff / laravelsqlines
Simple laravel package to manage the sync of databases over Sqlines
v0.0.3
2020-07-31 14:05 UTC
Requires
- illuminate/support: ~5|~6|~7
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-10-29 06:05:45 UTC
README
Simple laravel package to manage the sync of databases over Sqlines.
Installation
Via Composer
$ composer require brstuff/laravelsqlines
Copy config and sqlines to storage
php artisan vendor:publish --tag=laravelsqlines.config php artisan vendor:publish --tag=laravelsqlines.app
Usage
Simple example.
$log = \LaravelSqlines:: sourceConnection("oracle", "database_name_in_config") ->targetConnection("mysql", "database_name_in_config") ->tables(["table1", "tables2"]) ->tmap("table1, new_table_1") ->tmap("table2, new_table_2") ->sync();
License
MIT License (MIT). Please see the license file for more information.