2 require_once(realpath(dirname(__FILE__
) . '/') . '/../ajatus.php');
5 $content_db = "{$db}_content";
9 $ajatus = new ajatus(array(
10 'host' => 'couchdb_server',
14 catch (ajatus_exception
$e)
16 die( "Error initializing Ajatus! Reason:\n{$e}\n" );
19 //$view = $ajatus->types->tag->generate_view('list_with_docs');
21 //echo "Generated view:\n{$view}\n";
23 //$results = $ajatus->connection->$content_db->view->temp($view); //, array( 'count' => 20)
25 //echo "Total rows: {$results->total_rows}\n";
27 print_r($ajatus->types
->note
->get_by_tags(array('nemein')));
29 print_r($ajatus->helpers
->tag
->get_tag('nemein'));