Created
April 22, 2011 07:44
-
-
Save seratch/936225 to your computer and use it in GitHub Desktop.
How to connect MongoDB via Scala REPL
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
scala -cp casbah-commons*.jar:casbah-core*.jar:casbah-query*.jar:mongo-java-driver*.jar:slf4j-api-*.jar:scalaj-collection*.jar | |
scala> val conn = com.mongodb.casbah.MongoConnection("hostname") | |
conn: com.mongodb.casbah.MongoConnection = com.mongodb.casbah.MongoConnection@ada6d09 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment