refactor: clean up
This commit is contained in:
parent
b96bdb3068
commit
46df9f7aeb
2 changed files with 0 additions and 5 deletions
|
|
@ -107,7 +107,6 @@ fn gen_insert_method(model: &Model) -> TokenStream {
|
|||
|
||||
fn gen_insert_many_method(model: &Model) -> TokenStream {
|
||||
let resource_ident = format_ident!("{}", &model.name);
|
||||
let error_msg = format!("Failed to insert many entities of resource {:?}", model.name.clone());
|
||||
let sql_columns = model.fields.iter()
|
||||
.map(|f| f.name.clone())
|
||||
.collect::<Vec<String>>()
|
||||
|
|
|
|||
|
|
@ -53,10 +53,6 @@ enum GeneratorArgsSubCommands {
|
|||
#[derive(FromArgs)]
|
||||
/// SQLX Generator args
|
||||
struct GeneratorArgs {
|
||||
/// whether or not to debug
|
||||
#[argh(switch, short = 'd')]
|
||||
debug: bool,
|
||||
|
||||
/// path where to find Cargo.toml
|
||||
#[argh(option)]
|
||||
project_root: Option<String>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue