Skip to content

Commit

Permalink
Merge pull request #386 from nafg/relax-delete
Browse files Browse the repository at this point in the history
EntTableQuery#delete shouldn't need a KEnt when a Lookup suffices
  • Loading branch information
nafg authored Aug 2, 2024
2 parents 5eb0fda + 0055c3d commit 0fc1866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/slick/additions/AdditionsProfile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ trait AdditionsProfile { this: JdbcProfile =>
case ke: Ent => insert(ke)
}

def delete(ke: KEnt)(implicit ec: ExecutionContext) = lookupQuery(ke).delete
def delete(ke: Lookup)(implicit ec: ExecutionContext) = lookupQuery(ke).delete
}

trait AutoName { this: Table[_] =>
Expand Down

0 comments on commit 0fc1866

Please sign in to comment.