view implementations/midi-db/examples/example.lisp @ 315:d1ff5dad3f8d

Improve printing of list-collections. Ignore-this: 3073e6c1462cf98ca5752179ab6ecb1d darcs-hash:20100414191443-16a00-e2f9962b0cea652890be18297fdbd4bf7d533c84.gz
author j.forth <j.forth@gold.ac.uk>
date Wed, 14 Apr 2010 20:14:43 +0100
parents f99fd6a7bbfc
children 6a3adca16910
line wrap: on
line source
(cl:in-package #:amuse-midi-db)

(connect-to-database :database-name "amuse")

(list-collections *package*)

(list-compositions *package*) ; FIXME: is it a good idea for this to
			      ; be general or not?

(list-collections *package* :compositions t) ; list both collections
					     ; and compositions

(defparameter *composition*
  (get-composition (make-midi-db-composition-identifier 1)))