Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何结合 squeryl 模式中的列定义唯一约束?
A | B 2 1 allow 2 3 allow 3 1 allow 2 1 don't allow same with row one
你试过这个吗?
on(authors)(s => declare( columns(s.firstName, s.lastName) are(unique) ))
http://squeryl.org/schema-definition.html