We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe static schema for config is easier to work with. Eg:
ddl: "create_or_replace_table:hogehoge"
instead of
create_or_replace_table: hogehoge
Then we can make a sum type from that ddl like:
ddl
enum: SnowflakeDDL(val target: String): case CreateOrReplace(target: String) case Create(target: String) def parse(raw: String): Try[Throwable, SnowflakeDDL] = .... def ddl(x: SnowflakeDDL): String = x match { case CreateOrReplace(target) => s"CREATE OR REPLACE TABLE" }
This ensures user provide only 1 ddl verb and also makes compiler complaint if you forget to handle new case
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Maybe static schema for config is easier to work with. Eg:
instead of
Then we can make a sum type from that
ddl
like:This ensures user provide only 1 ddl verb and also makes compiler complaint if you forget to handle new case
The text was updated successfully, but these errors were encountered: