Last active
August 29, 2015 14:16
-
-
Save adam-zacharski/f0073366e818caaf1ec7 to your computer and use it in GitHub Desktop.
Simple PLV8
This file contains 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
DO $$ | |
var json_result = plv8.execute( 'SELECT * FROM snapshot' ); | |
var results = []; | |
json_result.forEach(function(r){ | |
if(r.blob && r.blob.archive.indexOf('824149b96bb9')){ | |
plv8.elog(NOTICE, JSON.stringify(r)); | |
} | |
}); | |
plv8.elog(NOTICE, 'length', json_result.length) | |
$$ LANGUAGE plv8; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment