[postmodern-devel] Table extra options in DAO definition
Rafał Strzaliński
nablaone at gmail.com
Sun Jun 8 21:00:31 UTC 2008
Hi,
I'm attaching a patch that allows to add table extra options ( :check
:unique ..) to a DAO definition.
Sample:
(defclass account ()
((id :col-type serial )
(login :col-type (varchar 255) :accessor login :initarg :login)
(password :col-type (varchar 255) :accessor password :initarg :password)
(created_at :col-type timestamp :accessor created-at :initform
(now-timestamp)))
(:unique name)
(:metaclass dao-class)
(:keys id)
(:extra-options (:unique login))
(:table-name account.account))
--
Best regards,
Rafal Strzalinski (nabla)
http://nablaone.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm-dao-definition-extra-options.patch
Type: text/x-diff
Size: 1021 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/postmodern-devel/attachments/20080608/6c8a8755/attachment.patch>
More information about the postmodern-devel
mailing list