Mercurial > hg > amuse
comparison base/database/implementations-functions.lisp @ 216:e1842efb1dd4
amuse-database-admin add implementation and dataset functionality
Ignore-this: 787cc01acf2d6a58640fec017de16c17
darcs-hash:20090716145807-16a00-6fe5ad4a2b6252b2c1f3d109a16455bb32243965.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 | |
children | 6a3adca16910 |
comparison
equal
deleted
inserted
replaced
215:4eceac78e7c6 | 216:e1842efb1dd4 |
---|---|
1 (cl:in-package #:amuse-database-admin) | |
2 | |
3 (defun register-new-implementation (package-object &optional | |
4 (database *amuse-database*)) | |
5 #.(clsql:locally-enable-sql-reader-syntax) | |
6 (clsql:insert-records :into "amuse_implementations" | |
7 :attributes '([implementation-name]) | |
8 :values (list (package-name package-object)) | |
9 :database database) | |
10 (clsql-mysql::mysql-insert-id | |
11 (clsql-mysql::database-mysql-ptr database)) | |
12 #.(clsql:locally-disable-sql-reader-syntax)) | |
13 | |
14 (defun implementation-package (object) | |
15 (symbol-package | |
16 (class-name | |
17 (class-of | |
18 object)))) | |
19 | |
20 (defun implementation-namestring (object) | |
21 (package-name (implementation-package object))) |