是否可以与Cassandra PHP驱动程序一起使用Pdostatement?

发布于 2025-02-07 15:55:19 字数 424 浏览 2 评论 0 原文

我正在尝试与此驱动程序一起使用: https://github.com/github.com/datastax/phpp -Driver

因此,我想知道是否可以使用 [pdostatement :: fetch] )使用Cassandra没有任何问题,就像可以将这些 PDO功能与MySQL一起使用吗?

I'm trying to use in PHP Cassandra with this Driver: https://github.com/datastax/php-driver.

So, I want to know if is it possible to use to use [PDOStatement::fetch] (https://www.php.net/manual/fr/pdostatement.fetch.php) and [PDOStatement::rowCount] (https://www.php.net/manual/fr/pdostatement.rowcount.php) with Cassandra without any problem EXACTLY like it possible to use these PDO Functions with MySQL?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

骄傲 2025-02-14 15:55:19

可能需要使用“ 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.

浊酒尽余欢 2025-02-14 15:55:19

我不相信 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文