[elephant-devel] open-store vs open-controller

Waldo Rubinstein waldo at trianet.net
Tue Dec 27 14:38:48 UTC 2005


I was wondering what the difference is between open-store and open- 
controller. See below:

Welcome to OpenMCL Version 1.0 (DarwinPPC32)!
? (in-package :ele)
#<Package "ELEPHANT">
? (open-store "dev/testdb")
#<BDB-STORE-CONTROLLER #x8570BB6>
? (get-from-root "my key")
NIL
NIL
? (add-to-root "my key" "my string")
"my string"
? (get-from-root "my key")
"my string"
T
? (close-store)
NIL
? (open-store "dev/testdb")
#<BDB-STORE-CONTROLLER #x856DC6E>
? (get-from-root "my key")
"my string"
T
? (close-store)
NIL
? (open-controller "dev/testdb")
 > Error in process listener(1): No applicable method for args:
 >                                ("dev/testdb")
 >                                to #<STANDARD-GENERIC-FUNCTION OPEN- 
CONTROLLER #x84103D6>
 > While executing: #<CCL::STANDARD-KERNEL-METHOD NO-APPLICABLE- 
METHOD (T)>
 > Type :POP to abort.
Type :? for other options.
1 > :pop

Thanks,
Waldo



More information about the elephant-devel mailing list