[rucksack-cvs] removing class instances from index

Vikram Bhandoh vikram.bhandoh at gmail.com
Thu Oct 19 10:30:15 UTC 2006


Hi there,

I've recently started using rucksack to manage presistence. I'm mainly
using persistent classes. My question is how do I delete an instance
from rucksack so that when I run rucksack-map-slot I don't see that
specific instance again?

(defclass employee ()
	((person :initarg :index-on :reader person
			:index :case-insensitive-string-index)
	 (history :initarg :history :accessor history)
	 (salary :initarg :object-pos :accessor object-pos :index :number-index)
	 (job :initarg :job :accessor job :index :symbol-index))
	(:metaclass persistent-class)
	(:index t))

I use make-instance to create the employee and then add-rucksack-root it.

I'm using rucksack-map-slot to get the data out.

I've tried index-delete with the class-index using the object-id and
the instance
but I can still access the stuff.

Any help will be greatly appreciated.

Vikram



More information about the rucksack-cvs mailing list