Description
MB-38737 adds an optional IF NOT EXISTS clause to CREATE statements and IF EXISTS clause to DROP statements mirroring https://docs.couchbase.com/server/7.0/analytics/5_ddl.html#Creating_and_dropping
The query documentation should be updated to reflect this too:
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/createcollection.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/createindex.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/createprimaryindex.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/createscope.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/dropcollection.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/dropindex.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/dropprimaryindex.html
https://docs.couchbase.com/server/7.0/n1ql/n1ql-language-reference/dropscope.html
The optional syntax is:
CREATE <element> <name> IF NOT EXISTS ...
DROP <element> <name> IF EXISTS ...
Attachments
Issue Links
- is triggered by
-
MB-38737 DDL's IF EXIST, IF NOT EXIST
- Closed
- links to