Skip to content

How to implement a case-insensitive exclusive constraint (for example, for usernames)? #6448

Answered by notramo
elliotwaite asked this question in Q&A
Discussion options

You must be logged in to vote

https://www.edgedb.com/docs/stdlib/constraints#constraint::std::exclusive

Is it possible to use something like constraint exclusive on (str_lower(.username))?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elliotwaite
Comment options

Answer selected by msullivan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants