Skip to content

Ruby/QL: Share dbscheme generation code #12765

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

Merged
merged 9 commits into from
Apr 5, 2023
Merged

Conversation

hmac
Copy link
Contributor

@hmac hmac commented Apr 5, 2023

This further consolidates the extractor code into the shared library.

hmac added 9 commits April 5, 2023 18:46
These are currently duplicated across the Ruby and QL extractors. Adding
them to the shared extractor library will get rid of this duplication.
These now live in the shared extractor library.
These now live in the shared extractor library.
Remove unnecessary borrows and lifetime specifiers.
Use clearer methods where appropriate.
@hmac hmac marked this pull request as ready for review April 5, 2023 13:19
@hmac hmac requested review from a team as code owners April 5, 2023 13:19
Copy link
Contributor

@aibaars aibaars 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. Let's see if we can get rid of even more code duplication.

};
(case, table)
}
use codeql_extractor::generator::{generate, language::Language};

fn main() -> std::io::Result<()> {
tracing_subscriber::fmt()
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should also factor out all the command line argument and logger setup code. Feel free to postpone that to a follow-up PR though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I've got plans for this in a follow-up.

@hmac hmac merged commit 60580ef into github:main Apr 5, 2023
@hmac hmac deleted the hmac-extractor-refactor branch April 5, 2023 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants