• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter + MongoDB

#1
[eluser]Unknown[/eluser]
I have been working with CodeIgniter for quite a while and eventually I ran into a project where the customer wanted to use MongoDB. At first I thought about writing a database driver, but then I realized that would never work because the drivers are based off of SQL logic, but MongoDB is a NoSQL style document database. I eventually came across Alex Bilbie's MongoDB plugin but found that it lacked the functionality I required, so I decided to use his wonderful code as a starting point and improve/extend from there. The resulting code can be found on github: http://github.com/kyledye/MongoDB-CodeIgniter-Driver

Please let me know what you think!

#2
[eluser]Abu eldahab[/eluser]
This man should be thanked Smile

many thanks kyle now I'm using the new version of Alex Bilbe Active record which merged your code also Smile

just want to say thanks for your effort and good work

Regards

#3
[eluser]Philipp Gérard[/eluser]
I'll second this. Thanks to the author(s) of this MongoDB-library. Very useful indeed.

#4
[eluser]gh0st[/eluser]
I'm trying to get the get_where command to work, but it never returns anything despite there being records to the contary;

Code:
$results = $this->mongo_db->get_where('company', array('cash' => 50000));

This should return at least 3 companies where their cash is 50000 but it always returns an empty array.

If I do:

Code:
$results = $this->mongo_db->get('company');

This will return all companies. So Mongo is installed and working.

What am I doing wrong?

#5
[eluser]Gewa[/eluser]
Hi there. Thank you for a nice lib. Can you help me with 2 exaples for my project

1) How to save files,like images and videos to Mongo via your lib...Could you show example

2) How to retreive and show image or video????




#6
[eluser]Anestetikas[/eluser]
I would like to store images to.

http://devzone.zend.com/1730/getting-sta...b-and-php/

There is info about storing files bigger than 4mb by using GridFS.


#7
[eluser]Unknown[/eluser]
Been excited to use MongoDB, and this should be a great jumping off point, Thanks!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.