brstuff / laravelsqlines
一个简单的 Laravel 扩展包,用于管理通过 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-09-29 05:49:28 UTC
README
一个简单的 Laravel 扩展包,用于管理通过 Sqlines 同步数据库。
安装
通过 Composer
$ composer require brstuff/laravelsqlines
复制配置和 sqlines 到存储
php artisan vendor:publish --tag=laravelsqlines.config php artisan vendor:publish --tag=laravelsqlines.app
用法
简单示例。
$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();
许可证
MIT 许可证 (MIT)。更多信息请参阅 许可证文件。