Skip to content

Commit fe15ade

Browse files
committed
drop unused aliases
1 parent 10ecf36 commit fe15ade

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/builder.rs

-12
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ pub struct OnConflictBuilder {
1919

2020
#[derive(Clone, Debug)]
2121
pub struct InsertBuilder {
22-
pub alias: String,
23-
2422
// args
2523
pub objects: Vec<InsertRowBuilder>,
2624

@@ -365,7 +363,6 @@ where
365363
.name()
366364
.ok_or("Encountered type without name in connection builder")?;
367365
let field_map = field_map(&type_);
368-
let alias = alias_or_name(query_field);
369366

370367
match &type_ {
371368
__Type::InsertResponse(xtype) => {
@@ -416,7 +413,6 @@ where
416413
}
417414
}
418415
Ok(InsertBuilder {
419-
alias,
420416
table: Arc::clone(&xtype.table),
421417
objects,
422418
selections: builder_fields,
@@ -432,8 +428,6 @@ where
432428

433429
#[derive(Clone, Debug)]
434430
pub struct UpdateBuilder {
435-
pub alias: String,
436-
437431
// args
438432
pub filter: FilterBuilder,
439433
pub set: SetBuilder,
@@ -535,7 +529,6 @@ where
535529
.name()
536530
.ok_or("Encountered type without name in update builder")?;
537531
let field_map = field_map(&type_);
538-
let alias = alias_or_name(query_field);
539532

540533
match &type_ {
541534
__Type::UpdateResponse(xtype) => {
@@ -587,7 +580,6 @@ where
587580
}
588581
}
589582
Ok(UpdateBuilder {
590-
alias,
591583
filter,
592584
set,
593585
at_most,
@@ -604,8 +596,6 @@ where
604596

605597
#[derive(Clone, Debug)]
606598
pub struct DeleteBuilder {
607-
pub alias: String,
608-
609599
// args
610600
pub filter: FilterBuilder,
611601
pub at_most: i64,
@@ -641,7 +631,6 @@ where
641631
.name()
642632
.ok_or("Encountered type without name in delete builder")?;
643633
let field_map = field_map(&type_);
644-
let alias = alias_or_name(query_field);
645634

646635
match &type_ {
647636
__Type::DeleteResponse(xtype) => {
@@ -691,7 +680,6 @@ where
691680
}
692681
}
693682
Ok(DeleteBuilder {
694-
alias,
695683
filter,
696684
at_most,
697685
table: Arc::clone(&xtype.table),

0 commit comments

Comments
 (0)