Created
August 26, 2011 23:27
-
-
Save sbisbee/1174685 to your computer and use it in GitHub Desktop.
Another script for Sag v0.5.1 connection pooling debugging purposes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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