Skip to content

Commit

Permalink
drop unused aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Aug 13, 2024
1 parent 10ecf36 commit fe15ade
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ pub struct OnConflictBuilder {

#[derive(Clone, Debug)]
pub struct InsertBuilder {
pub alias: String,

// args
pub objects: Vec<InsertRowBuilder>,

Expand Down Expand Up @@ -365,7 +363,6 @@ where
.name()
.ok_or("Encountered type without name in connection builder")?;
let field_map = field_map(&type_);
let alias = alias_or_name(query_field);

match &type_ {
__Type::InsertResponse(xtype) => {
Expand Down Expand Up @@ -416,7 +413,6 @@ where
}
}
Ok(InsertBuilder {
alias,
table: Arc::clone(&xtype.table),
objects,
selections: builder_fields,
Expand All @@ -432,8 +428,6 @@ where

#[derive(Clone, Debug)]
pub struct UpdateBuilder {
pub alias: String,

// args
pub filter: FilterBuilder,
pub set: SetBuilder,
Expand Down Expand Up @@ -535,7 +529,6 @@ where
.name()
.ok_or("Encountered type without name in update builder")?;
let field_map = field_map(&type_);
let alias = alias_or_name(query_field);

match &type_ {
__Type::UpdateResponse(xtype) => {
Expand Down Expand Up @@ -587,7 +580,6 @@ where
}
}
Ok(UpdateBuilder {
alias,
filter,
set,
at_most,
Expand All @@ -604,8 +596,6 @@ where

#[derive(Clone, Debug)]
pub struct DeleteBuilder {
pub alias: String,

// args
pub filter: FilterBuilder,
pub at_most: i64,
Expand Down Expand Up @@ -641,7 +631,6 @@ where
.name()
.ok_or("Encountered type without name in delete builder")?;
let field_map = field_map(&type_);
let alias = alias_or_name(query_field);

match &type_ {
__Type::DeleteResponse(xtype) => {
Expand Down Expand Up @@ -691,7 +680,6 @@ where
}
}
Ok(DeleteBuilder {
alias,
filter,
at_most,
table: Arc::clone(&xtype.table),
Expand Down

0 comments on commit fe15ade

Please sign in to comment.