Mercurial > hg > amuse
view base/database/implementations-functions.lisp @ 302:ac78ce3d0b10
Add some basic midi predicate and accessor functions.
Ignore-this: ab60873a92efc7f4c3cd98cdb938dcea
darcs-hash:20090918100419-16a00-bd8423ddea7a4700d7e1c5300e4dafd35113897c.gz
author | j.forth <j.forth@gold.ac.uk> |
---|---|
date | Fri, 18 Sep 2009 11:04:19 +0100 |
parents | 00d35eb70ef9 |
children | 6a3adca16910 |
line wrap: on
line source
(cl:in-package #:amuse-database-admin) (defun register-new-implementation (package-object &optional (database *amuse-database*)) #.(clsql:locally-enable-sql-reader-syntax) (clsql:insert-records :into "amuse_implementations" :attributes '([implementation-name]) :values (list (package-name package-object)) :database database) (clsql-mysql::mysql-insert-id (clsql-mysql::database-mysql-ptr database)) #.(clsql:locally-disable-sql-reader-syntax)) (defun implementation-package (object) (symbol-package (class-name (class-of object)))) (defun implementation-namestring (object) (package-name (implementation-package object)))