annotate base/database/implementations-functions.lisp @ 242:66f9c2913ac7
twiddle midi-db import example
Ignore-this: cf975529b1d8ad8af507e7dd2144ccea
darcs-hash:20100416180846-16a00-a91855cc12370a9198448353f4438647d4cdfdae.gz
committer: Jamie Forth <j.forth@gold.ac.uk>
author |
j.forth <j.forth@gold.ac.uk> |
date |
Thu, 24 Feb 2011 11:23:18 +0000 |
parents |
e1842efb1dd4 |
children |
6a3adca16910 |
rev |
line source |
j@216
|
1 (cl:in-package #:amuse-database-admin)
|
j@216
|
2
|
j@216
|
3 (defun register-new-implementation (package-object &optional
|
j@216
|
4 (database *amuse-database*))
|
j@216
|
5 #.(clsql:locally-enable-sql-reader-syntax)
|
j@216
|
6 (clsql:insert-records :into "amuse_implementations"
|
j@216
|
7 :attributes '([implementation-name])
|
j@216
|
8 :values (list (package-name package-object))
|
j@216
|
9 :database database)
|
j@216
|
10 (clsql-mysql::mysql-insert-id
|
j@216
|
11 (clsql-mysql::database-mysql-ptr database))
|
j@216
|
12 #.(clsql:locally-disable-sql-reader-syntax))
|
j@216
|
13
|
j@216
|
14 (defun implementation-package (object)
|
j@216
|
15 (symbol-package
|
j@216
|
16 (class-name
|
j@216
|
17 (class-of
|
j@216
|
18 object))))
|
j@216
|
19
|
j@216
|
20 (defun implementation-namestring (object)
|
j@216
|
21 (package-name (implementation-package object)))
|