Last active
December 15, 2015 02:39
-
-
Save paultag/5188459 to your computer and use it in GitHub Desktop.
hy + pymongo
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
(import-from pymongo Connection) | |
(def connection (Connection "localhost" 27017) "test") | |
(def db connection.test) | |
(def hello db.test) | |
(for [x (.find hello {"hello" {"$exists" true}})] | |
(print (get x "hello"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment