2017 © Pedro Peláez
 

library voltdb-client-wrapper

voltdb client wrapper

image

ytake/voltdb-client-wrapper

voltdb client wrapper

  • Sunday, October 5, 2014
  • by ytake
  • Repository
  • 3 Watchers
  • 2 Stars
  • 81 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

PHP VoltDB Client Wrapper

License Latest Version Total Downloads Dependency Status, (*1)

Scrutinizer Code Quality Code Coverage Build Status, (*2)

voltdb client wrapper / json interface support., (*3)

required extension
curl
suggest
voltdb-client-php(native branch), (*4)

Install

    "require": {
        "php": ">=5.4.0",
        "ext-curl": "*",
        "ext-voltdb": "*",
        "ytake/voltdb-client-wrapper": "0.*"
    },

Usage

VoltDB json API(simple)

$client = new \Ytake\VoltDB\HttpClient(new \Ytake\VoltDB\Parse);
// get request
$result = $client->request('http://localhost')->get(['Procedure' => 'allUser'])->getResult();
// post request
$result = $client->request('http://localhost')->post([
    'Procedure' => 'addUser',
    'Parameters' => [1, "voltdb"]
])->getResult();

use parameters

JSON HTTP Interface
same arguments, (*5)

// procedure-name
'Procedure' => null,
// procedure-parameters
'Parameters' => null,
// username for authentication
'User' => null,
// password for authentication
'Password' => null,
// Hashed password for authentication
'Hashedpassword' => null,
// true|false
'admin' => false,
// function-name
'jsonp' => null

get SystemInformation

// default "OVERVIEW"
$client->request('http://localhost')->info()->getResult();
// DEVELOPMENT
$client->request('http://localhost')->info("DEPLOYMENT")->getResult();

VoltClient wrapper

AdHoc Queries

$connection = new \Ytake\VoltDB\Client(new \VoltClient, new \Ytake\VoltDB\Parse);
$connection->connect()->excute("SELECT * FROM users");

not supported prepared statements
JDBC driver(java) supports or stored procedure(DDL), (*6)

Stored Procedure

$connection = new \Ytake\VoltDB\Client(new \VoltClient, new \Ytake\VoltDB\Parse);
$connection->connect()->procedure("Procedure-Name");

Async Stored Procedure

$connection = new \Ytake\VoltDB\Client(new \VoltClient, new \Ytake\VoltDB\Parse);
$async = $connection->connect()->asyncProcedure("allUser");
// blocking and get result
$async->drain();
$async->asyncResult();

The Versions

05/10 2014

dev-develop

dev-develop

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql

05/10 2014

dev-master

9999999-dev

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql

05/10 2014

dev-develop-cs

dev-develop-cs

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql

05/10 2014

0.2.4

0.2.4.0

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql

20/09 2014

0.2.3

0.2.3.0

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql

03/09 2014

0.2.2

0.2.2.0

voltdb client wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

by yuuki.takezawa

database api json voltdb newsql