PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of joerverson   PHP Migrate Database   README.md   Download  
File: README.md
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: 6 years ago
Size: 672 bytes
 

Contents

Class file image Download

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"]]);```