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                                     
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to