drqn5418 2013-10-30 13:33
浏览 35

在Codeigniter中使用MySQL和Cassandra

I am using Codeigniter to develop my application. I am using MySQL database and I need to integrate Cassandra db in my site. So i need to use both of them in my framework.

I get the code from the following link for using Codeigniter with Cassandra, but I need to use both cassandra and mysql. Is it possible to use both? Half of the project is completed i am using MySQL.

I only need to integrate Cassandra, but the files downloaded from github the code is intergrated with cassandra. I can't find the steps or separate plugin cassandra files to integrate with Codeignitor.

  • 写回答

1条回答 默认 最新

  • dongyan1841 2014-01-08 20:24
    关注

    yes its possible. cassandraci is a library whose function you can access with

    $this->db->query()->insert('key', array());
    $r1 = $this->db->query()->get('key');
    

    only if you autoload that db class. Read more

    评论

报告相同问题?

悬赏问题

  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了