Skip to content

Instantly share code, notes, and snippets.

@sbisbee
Created August 26, 2011 23:27
Show Gist options
  • Save sbisbee/1174685 to your computer and use it in GitHub Desktop.
Save sbisbee/1174685 to your computer and use it in GitHub Desktop.
Another script for Sag v0.5.1 connection pooling debugging purposes.
#!/usr/bin/php
<?php
require('Sag.php');
$sag = new Sag();
$sag->setDatabase('bwah', true);
// Send a temp view
var_dump($sag->post(array( 'map' => 'function(doc) { emit(null, null); }'), '/_temp_view'));
// Send a doc
var_dump($sag->post(array( 'hi' => 'there' )));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment