2017 © Pedro Peláez
 

library pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

image

antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  • Tuesday, September 12, 2017
  • by pinfake
  • Repository
  • 3 Watchers
  • 0 Stars
  • 2,916 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 18 % Grown

The README.md

pdo-mysql-query-linker

Latest Stable Version Total Downloads License Build Status Code Climate, (*1)

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections., (*2)

What is this thing

I'll explain once I get it done., (*3)

Install

To add as a dependency using composer:, (*4)

composer require antevenio/pdo-mysql-query-linker, (*5)

Usage example

<?php
$originPdo = new PDO('mysql:host=host1;dbname=kidsshouting', 'myuser', 'mypass');
$targetPdo = new PDO('mysql:host=host2;dbname=kidsshouting', 'myuser', 'mypass');

$linker = (new \PdoMysqlQueryLinker\Linker\Factory())->create()
    ->origin(
        $originPdo, 
        "select * from table_in_origin where column = 'something'"
        )
    ->target(
        $targetPdo, 
        "delete from table_in_destination inner join {origin} using(column)"
        );

// Get a limit clause block based iterator
$iterator = $linker->getIterator(10000);
foreach ($iterator as $row) {
    // do your stuff;
}
$linker->close();

// Get a pdo statement
$stmt = $linker->execute();
$rows = $stmt->fetchAll(\PDO::FETCH_ASSOC);
foreach ($rows as $row) {
    // do your stuff;
}
$linker->close();

// Get just the resolved query to run in destination adapter
$query = $linker->getQuery();
$stmt = $targetPdo->query($query);
$linker->close();

The Versions

12/09 2017

dev-master

9999999-dev https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/09 2017

0.0.13

0.0.13.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/09 2017

0.0.12

0.0.12.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/09 2017

0.0.11

0.0.11.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

11/09 2017

0.0.10

0.0.10.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

13/07 2017

0.0.9

0.0.9.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/07 2017

0.0.8

0.0.8.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/07 2017

0.0.7

0.0.7.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/07 2017

0.0.6

0.0.6.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

12/07 2017

0.0.5

0.0.5.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

23/06 2017

0.0.4

0.0.4.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

16/06 2017

0.0.3

0.0.3.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

15/06 2017

0.0.2

0.0.2.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote

14/06 2017

0.0.1

0.0.1.0 https://github.com/Antevenio/pdo-mysql-query-linker

PHP library that allows linking queries from diferent physical databases using mysql pdo database connections

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iván Mota Alberca

database php query select pdo mysql link remote