使用像Cassandra这样的NoSQL数据库,哪种php框架是最好的?

时间:2021-03-26 13:43:26

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框架,我想知道/确认以上这些框架在Cassandra或Mongodb这样的NoSQL数据库中是否都能有效工作?

  • 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类型数据库,是否可以执行服务器端验证?

1 个解决方案

#1


7  

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.

关于服务器端验证。为什么不呢?服务器验证不应该连接到所选的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。

#1


7  

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.

关于服务器端验证。为什么不呢?服务器验证不应该连接到所选的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。