Homec4science

Introduce QueryFuture

Authored by Jakub Vrana <jakub@vrana.cz> on Feb 20 2013, 02:47.

Description

Introduce QueryFuture

Summary:
This supports four ways for executing queries against MySQL:

  1. Async queries
  2. Parallel queries
  3. Multi queries: PHP, HPHP
  4. Plain old single queries

This is just a rough concept, I'll improve it later.

Test Plan:

$result = id(new QueryFuture($conn, 'SELECT 1'))->resolve();
print_r($result);

$futures = array(
  new QueryFuture($conn, 'SELECT 1'),
  new QueryFuture($conn, 'SELECT 2'),
);
foreach (Futures($futures) as $future) {
  print_r($future->resolve());
}

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5025

Details

Committed
Jakub Vrana <jakub@vrana.cz>Feb 21 2013, 22:31
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUaf37e0c80a60: Allow SimpleOptions to parse quoted keys and values
Branches
Unknown
Tags
Unknown

Event Timeline

Jakub Vrana <jakub@vrana.cz> committed rPHU17f4c313e34d: Introduce QueryFuture (authored by Jakub Vrana <jakub@vrana.cz>).Feb 21 2013, 22:31