[elephant-devel] using elephant:open-store with relative paths

Lukas Georgieff lukas.georgieff at hotmail.com
Wed Oct 20 12:36:21 UTC 2010


Hi Ian, hi Alex,
I have a problem when I use elephant:open-store with relative paths to the db-folder.When a relative path is given elephant:get-instances-by-class returns after the store was closed always NIL.

Here is a little example:
(asdf:operate 'asdf:load-op :elephant)
(elephant:defpclass TopicC ()  ((value :initarg :value	  :accessor value	  :type string))  (:index t))
(elephant:open-store '(:BDB "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(make-instance 'TopicC :value "t-1")(make-instance 'TopicC :value "t-2")(elephant:get-instances-by-class 'TopicC); absolute db path => (#<TOPICC oid:2> #<TOPICC oid:3>); relative db path => (#<TOPICC oid:2> #<TOPICC oid:3>)
(elephant:close-store)
(elephant:open-store '(:BDB "/home/lukas/.sbcl/site/isidorus/trunk/src/data_base"))(elephant:get-instances-by-class 'TopicC); absolute db path => (#<TOPICC oid:2> #<TOPICC oid:3>); relative db path => NIL

Is this a bug or must I use absolute paths for opening a store?

Best regards
Lukas 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20101020/878fbf83/attachment.html>


More information about the elephant-devel mailing list