view implementations/meredith/tests/import-raph-c-data.lisp @ 287:00d35eb70ef9

amuse-database-admin add implementation and dataset functionality Ignore-this: 787cc01acf2d6a58640fec017de16c17 darcs-hash:20090716145807-16a00-6fe5ad4a2b6252b2c1f3d109a16455bb32243965.gz
author j.forth <j.forth@gold.ac.uk>
date Thu, 16 Jul 2009 15:58:07 +0100
parents d22c67dac97d
children c9573d61b1b9
line wrap: on
line source
(cl:in-package #:amuse-meredith)

(asdf:oos 'asdf:load-op 'amuse-meredith)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tell the database about the new implementation.
(amuse-database-admin:register-new-implementation *package*)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Add the datasets to the database
(connect-to-database :database-name "test")

(create-meredith-tables *amuse-database*)

(import-bach-inv+sin *amuse-database*)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Retrieve compositions
(defparameter *bach*
  (get-composition (make-meredith-composition-identifier 1)))

(defparameter *bach-dataset*
  (get-dataset (make-amuse-dataset-identifier 1)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tidy up
;;(drop-meredith-tables *amuse-database*)
(disconnect-from-database)