laravel 哪种 php 框架最适合与 Cassandra 等 NoSQL 数据库一起使用?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24733576/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 09:48:35  来源:igfitidea点击:

Which php frameworks would be best to work with NoSQL database like Cassandra?

phpdatabaselaravelyiinosql

提问by Prashant

Yii, Laravel, CI & Cakephp are best known php frameworks in market, I would like to know / confirm that does all these above frameworks works efficiently with NoSQL databases like Cassandra or Mongodb?

Yii、Laravel、CI 和 Cakephp 是市场上最著名的 php 框架,我想知道/确认以上所有这些框架是否与 NoSQL 数据库(如 Cassandra 或 Mongodb)一起有效工作?

  • I am not sure about it so can anyone help to me understand it briefly?
  • Does server side validations can be performed if we go with NoSQL type database?
  • 我不确定,所以任何人都可以帮助我简要地理解它吗?
  • 如果我们使用 NoSQL 类型的数据库,是否可以执行服务器端验证?

回答by Oleksandr Otchenashev

I'm sure that you can work with Mongo from all framework that you need. Example from google:

我相信您可以从您需要的所有框架中使用 Mongo。来自谷歌的示例:

Select Framework that you like or have experience. Each of them have great community and solution work with NoSQL DB.

选择您喜欢或有经验的框架。他们每个人都拥有出色的社区和 NoSQL DB 解决方案。

Regarding server side validation. Why not? Server validation should not connected to selected DB.

关于服务器端验证。为什么不?服务器验证不应连接到选定的数据库。

Difference from MySQL that if you enter invalid data it show you error. In NoSQL that value accepted. But correct behavior work with DB it's validate information before it pass DB. So first you validate POST then if it valid pass it to DB.

与 MySQL 的不同之处在于,如果您输入无效数据,则会显示错误。在 NoSQL 中,该值被接受。但是正确的行为适用于 DB,它在通过 DB 之前验证信息。所以首先你验证 POST 然后如果它有效将它传递给 DB。