Next: , Previous: Preliminaries, Up: Tutorial


2.2 Getting Started

Make a directory to put your database store in. (This is called the environment in Sleepycat terminology.) That's all you need to set up your store! We'll assume in this tutorial you created a folder testdb in the current directory.

Assuming you've managed to install Elephant properly,

     * (asdf:operate 'asdf:load-op :elephant)

will load the relevant files.

     * (use-package "ELE")

will make all the necessary symbols available.

To make your store available to Lisp, do

     * (open-store "testdb")
     => #<STORE-CONTROLLER {49252F75}>

When you're done with your session, don't forget to

     * (close-store)
     => NIL

Also there is a convenience macro with-open-store.