使用 PHP + VoltDB 一起吗?
有没有办法在 PHP 应用程序中使用 voltDB?
看起来它确实比其他数据库有一些优势!
Is there any way to use voltDB in a PHP application?
It definitely seems like it have a few advantages over other Databases out there!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
绝对地。
VoltDB 已向 VoltDB 添加了 HTTP/JSON 客户端接口,现已可供预览。您可以从 http://community.voltdb.com/getinvolved#svn 下载/构建
另外,存在一个 C++ 客户端库(通过“其他编程语言的客户端接口”下的同一页面),并将用于创建 PHP 的本机客户端库。加入 http://community.voltdb.com 社区以获取更新。
Absolutely.
VoltDB has added a HTTP/JSON client interface to VoltDB which is available now for preview. You can download/build from http://community.voltdb.com/getinvolved#svn
Also, a C++ client library (via same page under "Client Interfaces for Other Programming Languages") exists and will be used to create a native client library for PHP. Join the community at http://community.voltdb.com to be updated.
@tmcallaghan 提到的原生 PHP 客户端库现在正在开发中。
您可以在此处下载/构建它:
https://svn.voltdb.com/clientapi/php/ trunk/
以下是使用中的示例:
https://source.voltdb.com/browse/ClientAPI/php/trunk/examples/helloworld.php?r=HEAD
The native PHP client library that @tmcallaghan alluded to is now under development.
You can download/build it here:
https://svn.voltdb.com/clientapi/php/trunk/
And here's an example of it in use:
https://source.voltdb.com/browse/ClientAPI/php/trunk/examples/helloworld.php?r=HEAD
VoltDB 开发人员在这里。 Ning Shi 刚刚完成了一个非常好的 PHP 扩展,与旧的 PHP 扩展相比,它在性能和可用性方面有了很大的改进。
旧扩展是 C++ 客户端库的 SWIG 包装器,由于 C++ 的可变参数和反射支持较弱,该扩展很冗长。服务器也不支持将参数绑定为字符串,这意味着客户端必须预先知道过程的签名,并且应用程序必须提供它。
新扩展没有 PHP 代码,因此加载速度更快,并且具有更惯用的 PHP 接口,该接口使用 PHP 数组,并且不需要您在调用之前声明过程及其参数。
新客户端位于下载页面。
VoltDB developer here. Ning Shi just finished a really nice PHP extension that is a big improvement in performance and usability over the old PHP extension.
The old extension was SWIG wrapper around the C++ client library which was verbose because of C++'s weaker vararg and reflection support. The server also didn't support binding parameters as strings for you which meant the client had to know the signature of the procedure up front and the application had to provide it.
The new extension has no PHP code so it loads faster and it has a more idiomatic PHP interface that uses PHP arrays and doesn't require you to declare a procedure and its parameters before invoking it.
The new client is on the download page.