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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream Changes - 4 #2168

Merged
merged 10 commits into from
Mar 27, 2024
Merged

Upstream Changes - 4 #2168

merged 10 commits into from
Mar 27, 2024

Conversation

billy1624
Copy link
Member

No description provided.

@@ -171,7 +171,7 @@ pub async fn run_generate_command(
.filter(|schema| filter_skip_tables(&schema.info.name))
.map(|schema| schema.write())
.collect();
(Some(schema.schema), table_stmts)
(database_schema, table_stmts)
Copy link
Member Author

Choose a reason for hiding this comment

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

we should only pass through non-default schema here

Copy link
Member

Choose a reason for hiding this comment

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

OK

Comment on lines -821 to -830
match schema_name {
Some(schema_name) => {
if schema_name != "public" {
Some(quote! { #schema_name })
} else {
None
}
}
None => None,
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Then we can remove this checking at codegen. This checking should be part of CLI anyway.

@billy1624 billy1624 marked this pull request as ready for review March 27, 2024 07:53
@billy1624 billy1624 merged commit 0ff000b into master Mar 27, 2024
32 checks passed
@billy1624 billy1624 deleted the upstream-changes-4 branch March 27, 2024 08:19
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.

None yet

2 participants