how to connect with couchdb in codeigniter?

0

Does anyone know how to connect to CouchDB using codeigniter?

We have tried many tutorials, we have added the necessary libraries, but we have not succeeded. Please help us.

    
asked by anonymous 23.10.2015 / 01:04

1 answer

1

I'm finishing here, thanks, after much effort we got connection, it's just loading the library into autoload. and start using the methods.

//no autoload.php
$autoload['libraries'] = array('couchdb');

//criar uma database
$dsn ='http://127.0.0.1:5984/';

$couch = new couchClient($dsn, 'testecouch'); // See if we can make a connection
$resp =  $couch->createDatabase();

The library is working perfectly.

    
23.10.2015 / 02:36