Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Created February 8, 2014 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalankit/8891641 to your computer and use it in GitHub Desktop.
Save goyalankit/8891641 to your computer and use it in GitHub Desktop.
#Berkley db env variables
export JE_HOME=/Users/ankit/UT/sem2/database-systems/je-5.0.103
export CLASSPATH=$JE_HOME/lib/je-5.0.103.jar:$JE_HOME/examples

#compile
javac je/gettingStarted/*.java

#make the env directory
mkdir gsgEnv

#load the files
java je.gettingStarted.ExampleDatabasePut -h gsgEnv -i je/gettingStarted/inventory.txt  -v je/gettingStarted/vendors.txt

#query the database
java je.gettingStarted.ExampleInventoryRead -h gsgEnv

#based on inventory read
java je.gettingStarted.ExampleInventoryRead -h gsgEnv -s Upo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment