(:metaclass standard-db-class)
(:documentation "Superclass for all CLSQL View Classes."))
+(defparameter *default-string-length* 255
+ "The length of a string which does not have a user-specified length.")
+
(defvar *db-auto-sync* nil
"A non-nil value means that creating View Class instances or
setting their slots automatically creates/updates the
(when keylist
(convert-to-db-default-case
(format nil "CONSTRAINT ~APK PRIMARY KEY~A"
- (database-output-sql (view-table class) database)
- (database-output-sql keylist database))
+ (sql-output (view-table class) database)
+ (sql-output keylist database))
database))))
(defmethod database-generate-column-definition (class slotdef database)
(setf cdef (append cdef (list (view-class-slot-db-type slotdef))))
(let ((const (view-class-slot-db-constraints slotdef)))
(when const
- (setq cdef (append cdef (list const)))))
+ (setq cdef (append cdef (listify const)))))
cdef)))