-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
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.
There was a problem hiding this 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() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This further consolidates the extractor code into the shared library.