-
Notifications
You must be signed in to change notification settings - Fork 114
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
base: 2.0
Are you sure you want to change the base?
Conversation
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 { |
There was a problem hiding this comment.
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)
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 =). |
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);