Changeset 2609
- Timestamp:
- 02/24/08 00:19:22 (9 months ago)
- Files:
-
- trunk/bknr/datastore/src/data/tutorial.lisp (modified) (5 diffs)
- trunk/bknr/datastore/src/data/txn.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bknr/datastore/src/data/tutorial.lisp
r1635 r2609 73 73 ;;; indices module by evaluating the following form: 74 74 75 (asdf:oos 'asdf:load-op :bknr -datastore)75 (asdf:oos 'asdf:load-op :bknr.datastore) 76 76 77 77 ;;; Then switch to the `bknr.datastore' package to try out the tutorial. … … 134 134 ;;; directory "/tmp/tutorial-store". 135 135 136 (close-store) 136 137 (make-instance 'tutorial-store :directory "/tmp/tutorial-store/" 137 138 :subsystems nil) … … 180 181 (close-store) 181 182 ; => NIL 182 *store* 183 (boundp '*store*) 183 184 ; => NIL 184 185 … … 339 340 ;;; subsystem `STORE-OBJECT-SUBSYSTEM'. 340 341 342 (close-store) 341 343 (make-instance 'mp-store :directory "/tmp/object-store/" 342 344 :subsystems (list … … 372 374 ; at timestamp 3309260107 373 375 ; => #<STORE-OBJECT ID: 12> 374 (store-object-with-id 12)375 ; => #<STORE-OBJECT ID: 12>376 (delete-object (store-object-with-id 12))377 ; executing transaction #$(TX-DELETE-OBJECT 12)376 (store-object-with-id 2) 377 ; => #<STORE-OBJECT ID: 2> 378 (delete-object (store-object-with-id 2)) 379 ; executing transaction #$(TX-DELETE-OBJECT 2) 378 380 ; at timestamp 3309260112 379 381 ; => T 380 (store-object-with-id 12)382 (store-object-with-id 2) 381 383 ; => NIL 382 384 trunk/bknr/datastore/src/data/txn.lisp
r2600 r2609 106 106 107 107 (defun close-store () 108 (when *store*109 (close- store-object *store*))110 ( setf *store* nil))108 (when (and (boundp '*store) *store*) 109 (close-object *store*)) 110 (makunbound '*store*)) 111 111 112 112 (defmacro with-store-guard ((&optional (store '*store*)) &rest body)
