Ratings | | Unique User Downloads | | Download Rankings |
 39% | | Total: 310 | | All time: 7,284 This week: 174 |
|
Description | | Author |
This class can migrate data that match conditions between tables.
It can take the parameters of connection of two database and connect to them using PDO.
The class can also migrate data that matches certain conditions from one database table to the other. Innovation Award
 September 2017
Number 3 |
Sometimes PHP applications need to synchronize databases hosted in different locations. However in many cases the information that needs to be synchronized is not the whole information in the database.
This class provides a solution that allows to migrate data of specific tables by specifying conditions that restrict the table records that need to be migrated.
Manuel Lemos |
| |
 |
|
Innovation award
 Nominee: 1x |
|
Details
migration_database
migrate yours data between databases, easy and fast you can migrate datas of the a database sorce fro database clone or just table of the source database.
How use?
Define the server source and the serve that clone in you database
"src" => [
"user" => "",
"host" => ".db.4855800.hostedresource.com",
"pass" => "@",
"database" => ""
],
"clone" => [
"user" => "dev",
"host" => "localhost",
"pass" => "@",
"database" => ""
],
];
$migdb = new Migration_Database($ar);
$migdb->migrate(["table"=>"qualidade", "pk"=>['pk1', 'pk2'], "where"=>["key"=>"value"]]);```
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.