How to create dao class with identity column as primary key?
Timo Myyrä
timo.myyra at bittivirhe.fi
Mon Jun 8 18:40:40 UTC 2020
Hi,
I'm learning to use postmodern as part of my hobby project but I've hit a small bump in the process.
I can have the identity column defined for table without dao with something like:
(s-sql:sql (:create-table (:if-not-exists 'user)
((id :type int :identity-always t)
(username :type text)
(:primary-key id)))
But I intent to use dao classes so it would be nice to have identity column specified as part to defclass slot options.
Is there some way to create dao class with identity column?
Br,
Timo M
More information about the postmodern-devel
mailing list