DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
specify regex check on column constraint sqlalchemy
class user(db.Model): ... __table_args__ = (CheckConstraint("regexp_like(email, ...)", name=...),)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#regex
#check
#column
#constraint
#sqlalchemy
ADD COMMENT
Topic
COMMENT
Name
7+5 =
Submit