Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated CouchDB datasource for CakePHP 2.0 #28

Open
wants to merge 8 commits into
base: 2.0
Choose a base branch
from

Conversation

maurymmarques
Copy link
Contributor

Fitness for CakePHP 2.0
Changed from cakeError() to MissingConnectionException()
Added method to search for the latest revision updates without the review
Change the query() method to let you use the methods of socket freely
Example:
$this->Model->curlGet('_all_dbs');
$this->Model->curlPut('document_name');
$this->Model->curlPost('document_name', array('field' => 'value'));
$this->Model->curlDelete('document_name');
$this->Model->curlPost('document_name', array('field' => 'value'), false);
$this->Model->curlPost('document_name', array('field' => 'value'), true , false);

Changed from cakeError() to MissingConnectionException()
Added method to search for the latest revision updates without the
review
Change the query() method to let you use the methods of socket freely
@@ -25,13 +26,27 @@
* @package datasources
* @subpackage datasources.models.datasources
*/
class CouchdbSource extends DataSource {
class CouchDBSource extends DataSource {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that necessary - Perhaps add a todo to rename the class which we can do at the next major release (rather than force this update to be further delayed until after the next major release)

@AD7six
Copy link
Member

AD7six commented Feb 17, 2014

I've left some feedback that needs addressing; I realize this PR is eons old - are you still interested in cleaning up the PR to merge it? If not no worries, and thanks for the effort =).

@AD7six AD7six added the couchdb label Feb 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants