Skip to content

Conversation

@rakhi-prathap
Copy link
Contributor

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.

Copy link

@Sohoxic Sohoxic left a 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!

rakhi-prathap and others added 2 commits November 17, 2025 09:31
Co-authored-by: Simon Dew <39966290+simon-dew@users.noreply.github.com>
@rakhi-prathap
Copy link
Contributor Author

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!

Added examples to show how to extract DDLs from all buckets and how to extract all supported DDL statements from a specific bucket by omitting flags.

Also, since we already have 6 examples for this function, will leave it at that and skip adding examples for each individual flag.

Copy link

@Sohoxic Sohoxic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants