php - Help me to select a NoSQL Package -
i'm new nosql [have read articles on nosql] , want develop simple application using it.
please me select nosql system
system should have these features
- sql select query (select col1, col2 tbl col1>10)
- sql insert query (it better if has auto increment feature)
- it should compatible use php
look @ mongodb. simple use, fast, reliable , quite powerful. also, there's nice driver php.
mongodb "nosql", schema-free , document-oriented. different terminology used, beginner can think has collections instead of tables, documents instead of rows , fields instead of columns. inserting , selecting quite simple:
// select documents. $cursor = $db->my_collection->find(array( 'field1' => array('$gt' => 10), // field1 > 10 ), array( 'field1', 'field2', // fields fetch ))->sort(array( 'field3' => -1, // sort descending field3 )); while($document = $cursor->getnext()) { // ... } // insert document. $db->my_collection->insert(array( 'field1' => 'a', 'field2' => 2, 'field3' => 14.8, ));
Comments
Post a Comment