Skip to content
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

Import existing obects #23

Closed
Stegallo opened this issue Oct 5, 2022 · 2 comments
Closed

Import existing obects #23

Stegallo opened this issue Oct 5, 2022 · 2 comments

Comments

@Stegallo
Copy link
Contributor

Stegallo commented Oct 5, 2022

This project is great and I really like the declarative approach.

I think it works perfectly when the database is built from scratch using the tool.

In case of an existing database containing a large number of object, creating the yaml file for each of them can require significant manual effort. Have you by chance considered a way to import existing objects in the configuration? Snowflake allows to script the content of the database, but that gets exported in the form of a SQL script and it cat not immediately be used as is with the tool.

Appreciate your input.
Thanks!

@littleK0i
Copy link
Owner

littleK0i commented Oct 5, 2022

Thank you for your interest. Yes, I think about this feature quite often.

A few very basic converters are available, but not documented at this moment. Please check CLI options for this command: snowddl-convert --help

You may also check this discussion thread for a bit more information.

The main issue with automated conversion is a relatively high amount of time & effort required to implement and maintain this feature. Snowflake keeps adding new options, but many options are still not available for introspection with DESC command and INFORMATION_SCHEMA.

Currently I am trying to figure out which object types and options are absolutely required. Implementing all types is not feasible, but we could definitely cover the most frequently used ones.

@Stegallo
Copy link
Contributor Author

Stegallo commented Oct 5, 2022

Thanks for your reply. I should have checked the discussions tab first.
I will close this issue and refer to that tab further conversation.

@Stegallo Stegallo closed this as completed Oct 5, 2022
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

No branches or pull requests

2 participants