bbotella commented on code in PR #3562:
URL: https://github.com/apache/cassandra/pull/3562#discussion_r1920265903


##########
doc/modules/cassandra/pages/developing/cql/constraints.adoc:
##########
@@ -0,0 +1,93 @@
+= Constraints
+
+Constraints provide a way of specifying and enforcing conditions at a
+column level in a table schema definition and enforcing them at write time.
+
+== CREATE CONSTRAINT
+
+Constraints can be created within the column definition, or as part
+of the table properties.
+
+The main syntaxis to define a constraint is as follows:
+
+[source,bnf]
+----
+CREATE TABLE keyspace.table (
+       name text,
+       i int CHECK (condition) (AND (condition))*

Review Comment:
   We discussed some improvements over the initial CEP proposal on the dev 
list. 
   https://lists.apache.org/thread/nld8vvgw81dp5t1b1n5v2p9f9bwm9ylx
   
   With this approach we are avoiding adding new reserved keywords that may be 
non backward compatible with current table names.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to