-
Notifications
You must be signed in to change notification settings - Fork 19
[DOC-13700] Update EXTRACTDDL() to add new flags #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/8.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good for the function and prepareds flag but just a suggestion if you could add another example where we donot specify the flags, meaning an empty "" which will give back all the DDL statements(create bucket/scope/collection/index/sequence/function/prepareds). Also if you could add examples for each of the flag separately like we have for index:
SELECT extractddl("travel-sample",{"flags":["index"]});
Else everything looks fine to me!
| * CREATE COLLECTION | ||
| * CREATE INDEX | ||
| * CREATE SEQUENCE | ||
| * CREATE FUNCTION [.status]#Couchbase Server 8.0.1# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency
| * CREATE FUNCTION [.status]#Couchbase Server 8.0.1# | |
| * CREATE OR REPLACE FUNCTION [.status]#Couchbase Server 8.0.1# |
|
|
||
| Accepts either a numeric value or an array of strings, but not both. | ||
|
|
||
| [options="header", cols="1a,1a,1a"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make third column narrower?
| [options="header", cols="3a,2a,1a"] |
| [options="header", cols="1a,1a,1a"] | ||
| !=== | ||
|
|
||
| ! Statement ! String Value ! Numeric Value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ! Statement ! String ! Number |
Adds two new flags to the EXTRACTDDL function.
Jira: DOC-13700
Docs preview: EXTRACTDDL()
Preview credentials: Credentials for internal review
Note
These flags are supported only starting with the 8.0.1 update, so DO NOT MERGE until that version is available.