承接 michabbb/php-crate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michabbb/php-crate

最新稳定版本:v1.0

Composer 安装命令:

composer require michabbb/php-crate

包简介

A PHP Helper Class working with the crate db

README 文档

README

A PHP helper class for working with the crate db
using a round robin connection pool based on a modified version of allegro/toper

Notice

i use a modified version of allegro/toper where the original guzzle response object gets returned

Quick start

$APIURL = "/_sql?pretty";
$POOL   = "http://127.0.0.1:4200,http://127.0.0.1:4201,http://127.0.0.1:4202";
$SQL    = "select id from test";

$CRATE = new crate($POOL,$APIURL);
$result = $CRATE->sql($SQL);

Simple Test

vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --colors tests/SelectTest.php --verbose --debug

统计信息

  • 总下载量: 2.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-05-16