PHP Classes


Recommend this page to a friend!
  Classes of joerverson   PHP Migrate Database   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Migrate Database
Migrate data that match conditions between tables
Author: By
Last change: okok
Date: 5 years ago
Size: 672 bytes


Class file image Download


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" => "",
        "pass" => "@",
        "database" => ""
    "clone" => [
        "user" => "dev",
        "host" => "localhost",
        "pass" => "@",
        "database" => ""
$migdb = new Migration_Database($ar);
$migdb->migrate(["table"=>"qualidade", "pk"=>['pk1', 'pk2'], "where"=>["key"=>"value"]]);```