brstuff/laravelsqlines

Simple laravel package to manage the sync of databases over Sqlines

v0.0.3 2020-07-31 14:05 UTC

This package is auto-updated.

Last update: 2024-10-29 06:05:45 UTC


README

Status Release Latest Version on Packagist License: MIT

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.