是否可以与Cassandra PHP驱动程序一起使用Pdostatement?
我正在尝试与此驱动程序一起使用: https://github.com/github.com/datastax/phpp -Driver 。
因此,我想知道是否可以使用 [pdostatement :: fetch]
()使用Cassandra没有任何问题,就像可以将这些 PDO功能与MySQL一起使用吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能需要使用“ Cassandra CQL的PDO驱动程序实现” ...
在这里一样: https://github.com/orange-opensource/yacassandrapdo
就像 PDO将能够产生CQL语法。
One likely needs to use a "PDO driver implementation for Cassandra CQL" ...
alike this one here: https://github.com/Orange-OpenSource/YACassandraPDO
Only then PDO would be able to produce CQL syntax.
我不相信
pdostatement
将与Cassandra PHP驱动程序一起使用。几年前(左右),在Google代码上有一个Cassandra PDO驱动程序,该驱动程序可与Thrift一起使用-A href =“ https://code.google.com/archive/Archive/a/apache-extras.org/p/ cassandra-pdo“ rel =” nofollow noreferrer“> https://code.google.com/archive/a/apache-extras.org/p/cassandra-pdo 。
它是由Orange分配的,以提供CQL支持 - https://github.com/orange.com/orange-opensourange-opensource/orange-opensource/yacassandrapdopodo 。但是,最后一个版本一直可以追溯到2014年,自2015年以来,它似乎没有任何工作
。 最后一个版本(v1.3.2)返回2017年 。尽管我们继续接受贡献者的拉力请求,但我不建议您进行任何新的项目使用此驱动程序,因为它已经多年来一直没有积极发展。干杯!
I don't believe
PDOStatement
will work out of the box with the Cassandra PHP driver.Years ago (around 2011), there was a Cassandra PDO driver available on Google Code which worked with Thrift -- https://code.google.com/archive/a/apache-extras.org/p/cassandra-pdo.
It was forked by Orange to provide CQL support -- https://github.com/Orange-OpenSource/YACassandraPDO. However, the last release was all the way back to 2014 and it doesn't look like there has been any work on it since 2015.
As a side note, the Cassandra PHP driver has been in maintenance mode for a number of years now with the last release (v1.3.2) going back to 2017. Although we continue to accept pull requests from contributors, I wouldn't recommend doing any new project that uses this driver given it has not been in active development for years. Cheers!