Skip to content

Commit

Permalink
Update scalafmt settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 31, 2024
1 parent 51388df commit 3110bf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "3.8.3"
runner.dialect = Scala213
runner.dialect = Scala213Source3
maxColumn = 120
align.preset = none
align.tokens = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ trait BlockingJdbcProfile extends JdbcProfile with BlockingRelationalProfile {
.run(new BlockingJdbcActionContext(s))
}

def ++=(values: Iterable[U])(implicit s: JdbcBackend#Session): Int = insertAll(values.toSeq *)
def ++=(values: Iterable[U])(implicit s: JdbcBackend#Session): Int = insertAll(values.toSeq*)

def insertAll(values: U*)(implicit s: JdbcBackend#Session): Int = {
createInsertActionExtensionMethods(compiled)
Expand Down Expand Up @@ -218,7 +218,7 @@ trait BlockingJdbcProfile extends JdbcProfile with BlockingRelationalProfile {
}
}

def ++=(values: Iterable[T])(implicit s: JdbcBackend#Session): Seq[R] = insertAll(values.toSeq *)
def ++=(values: Iterable[T])(implicit s: JdbcBackend#Session): Seq[R] = insertAll(values.toSeq*)

def insertAll(values: T*)(implicit s: JdbcBackend#Session): Seq[R] = {
(a ++= values) match {
Expand All @@ -241,7 +241,7 @@ trait BlockingJdbcProfile extends JdbcProfile with BlockingRelationalProfile {
}
}

def ++=(values: Iterable[T])(implicit s: JdbcBackend#Session): Seq[R] = insertAll(values.toSeq *)
def ++=(values: Iterable[T])(implicit s: JdbcBackend#Session): Seq[R] = insertAll(values.toSeq*)

def insertAll(values: T*)(implicit s: JdbcBackend#Session): Seq[R] = {
(a ++= values) match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ abstract class SlickBlockingAPISpec(p: BlockingJdbcProfile) extends AnyFunSuite
UsersRow(3, "tanacasino", None)
)

Users.insertAll(users: _*)
Users.insertAll(users*)
val count1 = Query(Users.length).first
assert(count1 == 3)

Expand Down

0 comments on commit 3110bf7

Please sign in to comment.