X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=create-sql.lisp;h=348131169d7d156c9f64f6745cfee64cb77497e8;hb=466bf8726b602d58e4ad1a103d9c9b36077521a1;hp=80d842abe55a6f9944903c925e9bbd1e78123f8f;hpb=45453f00199223924481c8d6d614972a327a250f;p=umlisp.git diff --git a/create-sql.lisp b/create-sql.lisp index 80d842a..3481311 100644 --- a/create-sql.lisp +++ b/create-sql.lisp @@ -7,10 +7,10 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: create-sql.lisp,v 1.3 2003/05/08 04:36:12 kevin Exp $ +;;;; $Id: create-sql.lisp,v 1.7 2003/07/21 09:46:22 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is -;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. +;;;; Copyright (c) 2000-2003 by Kevin M. Rosenberg, M.D. ;;;; ;;;; UMLisp users are granted the rights to distribute and use this software ;;;; as governed by the terms of the GNU General Public License. @@ -18,9 +18,6 @@ (in-package #:umlisp) -(eval-when (:compile-toplevel) - (declaim (optimize (speed 3) (safety 1) (compilation-speed 0) (debug 3)))) - (defun create-table-cmd (file) "Return sql command to create a table" (let ((col-func @@ -157,7 +154,8 @@ conn))) (defun sql-create-special-tables (conn) - (make-usrl conn)) + (make-usrl conn) + (make-ustats)) (defun create-umls-db-by-insert () "SQL Databases: initializes entire database via SQL insert commands" @@ -192,7 +190,8 @@ This is much faster that using create-umls-db-insert." (defun translate-all-files (&optional (extension ".trans")) "Copy translated files and return postgresql copy commands to import" (make-noneng-index-file extension) - (dolist (f *umls-files*) (translate-umls-file f extension))) + (dolist (f (remove "MRXW.NONENG" *umls-files* :test #'string= :key #'fil)) + (translate-umls-file f extension))) (defun translate-umls-file (file extension) "Translate a umls file into a format suitable for sql copy cmd"