Skip to content

Commit

Permalink
Merge pull request #237 from scala-steward/update/scalafmt-core-3.8.2
Browse files Browse the repository at this point in the history
Update scalafmt-core from 3.8.1 to 3.8.2
  • Loading branch information
takapi327 authored Jun 18, 2024
2 parents 93b7ac4 + 5a6df2f commit 3ee6b28
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 41 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.8.1
f6bcbe98482ad1c3298ea4610c71ff44cd114539

# Scala Steward: Reformat with scalafmt 3.8.2
131f602f18d39b99b2f2b9d97f4f6a2bd690a7ec
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.1
version = 3.8.2

maxColumn = 120

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2349,24 +2349,24 @@ private[ldbc] object DatabaseMetaDataImpl:
Connection.TRANSACTION_REPEATABLE_READ | Connection.TRANSACTION_SERIALIZABLE =>
true
case _ => false
override def supportsDataDefinitionAndDataManipulationTransactions(): Boolean = false
override def supportsDataManipulationTransactionsOnly(): Boolean = false
override def dataDefinitionCausesTransactionCommit(): Boolean = true
override def dataDefinitionIgnoredInTransactions(): Boolean = false
override def ownUpdatesAreVisible(`type`: Int): Boolean = false
override def ownDeletesAreVisible(`type`: Int): Boolean = false
override def ownInsertsAreVisible(`type`: Int): Boolean = false
override def othersUpdatesAreVisible(`type`: Int): Boolean = false
override def othersDeletesAreVisible(`type`: Int): Boolean = false
override def othersInsertsAreVisible(`type`: Int): Boolean = false
override def updatesAreDetected(`type`: Int): Boolean = false
override def deletesAreDetected(`type`: Int): Boolean = false
override def insertsAreDetected(`type`: Int): Boolean = false
override def supportsBatchUpdates(): Boolean = true
override def supportsSavepoints(): Boolean = true
override def supportsNamedParameters(): Boolean = false
override def supportsMultipleOpenResults(): Boolean = true
override def supportsGetGeneratedKeys(): Boolean = true
override def supportsDataDefinitionAndDataManipulationTransactions(): Boolean = false
override def supportsDataManipulationTransactionsOnly(): Boolean = false
override def dataDefinitionCausesTransactionCommit(): Boolean = true
override def dataDefinitionIgnoredInTransactions(): Boolean = false
override def ownUpdatesAreVisible(`type`: Int): Boolean = false
override def ownDeletesAreVisible(`type`: Int): Boolean = false
override def ownInsertsAreVisible(`type`: Int): Boolean = false
override def othersUpdatesAreVisible(`type`: Int): Boolean = false
override def othersDeletesAreVisible(`type`: Int): Boolean = false
override def othersInsertsAreVisible(`type`: Int): Boolean = false
override def updatesAreDetected(`type`: Int): Boolean = false
override def deletesAreDetected(`type`: Int): Boolean = false
override def insertsAreDetected(`type`: Int): Boolean = false
override def supportsBatchUpdates(): Boolean = true
override def supportsSavepoints(): Boolean = true
override def supportsNamedParameters(): Boolean = false
override def supportsMultipleOpenResults(): Boolean = true
override def supportsGetGeneratedKeys(): Boolean = true
override def getResultSetHoldability(): Int = ResultSet.HOLD_CURSORS_OVER_COMMIT
override def getJDBCMajorVersion(): Int = Constants.DRIVER_VERSION.major
override def getJDBCMinorVersion(): Int = Constants.DRIVER_VERSION.minor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ object Codec extends TwiddleSyntax[Codec]:
*/
given InvariantSemigroupalCodec: InvariantSemigroupal[Codec] =
new InvariantSemigroupal[Codec]:
override def imap[A, B](fa: Codec[A])(f: A => B)(g: B => A): Codec[B] = fa.imap(f)(g)
override def product[A, B](fa: Codec[A], fb: Codec[B]): Codec[(A, B)] = fa product fb
override def imap[A, B](fa: Codec[A])(f: A => B)(g: B => A): Codec[B] = fa.imap(f)(g)
override def product[A, B](fa: Codec[A], fb: Codec[B]): Codec[(A, B)] = fa product fb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ trait NumericCodecs:
"0.3.0"
)
def tinyint(size: Int): Codec[Byte] = Codec.simple(_.toString, safe(Type.tinyint)(_.toByte), Type.tinyint(size))
val tinyint: Codec[Byte] = Codec.simple(_.toString, safe(Type.tinyint)(_.toByte), Type.tinyint)
val tinyint: Codec[Byte] = Codec.simple(_.toString, safe(Type.tinyint)(_.toByte), Type.tinyint)

@deprecated(
"As of MySQL 8.0.17, the display width attribute for integer data types is deprecated. It will no longer be supported in future versions of MySQL.",
Expand All @@ -87,7 +87,7 @@ trait NumericCodecs:
"0.3.0"
)
def smallint(size: Int): Codec[Short] = Codec.simple(_.toString, safe(Type.smallint)(_.toShort), Type.smallint(size))
val smallint: Codec[Short] = Codec.simple(_.toString, safe(Type.smallint)(_.toShort), Type.smallint)
val smallint: Codec[Short] = Codec.simple(_.toString, safe(Type.smallint)(_.toShort), Type.smallint)

@deprecated(
"As of MySQL 8.0.17, the display width attribute for integer data types is deprecated. It will no longer be supported in future versions of MySQL.",
Expand Down Expand Up @@ -118,21 +118,21 @@ trait NumericCodecs:
"0.3.0"
)
def int(size: Int): Codec[Int] = Codec.simple(_.toString, safe(Type.int)(_.toInt), Type.int(size))
val int: Codec[Int] = Codec.simple(_.toString, safe(Type.int)(_.toInt), Type.int)
val int: Codec[Int] = Codec.simple(_.toString, safe(Type.int)(_.toInt), Type.int)

@deprecated(
"As of MySQL 8.0.17, the display width attribute for integer data types is deprecated. It will no longer be supported in future versions of MySQL.",
"0.3.0"
)
def uint(size: Int): Codec[Long] = Codec.simple(_.toString, safe(Type.uint)(intUnsignedRange), Type.uint(size))
val uint: Codec[Long] = Codec.simple(_.toString, safe(Type.uint)(intUnsignedRange), Type.uint)
val uint: Codec[Long] = Codec.simple(_.toString, safe(Type.uint)(intUnsignedRange), Type.uint)

@deprecated(
"As of MySQL 8.0.17, the display width attribute for integer data types is deprecated. It will no longer be supported in future versions of MySQL.",
"0.3.0"
)
def bigint(size: Int): Codec[Long] = Codec.simple(_.toString, safe(Type.bigint)(_.toLong), Type.bigint(size))
val bigint: Codec[Long] = Codec.simple(_.toString, safe(Type.bigint)(_.toLong), Type.bigint)
val bigint: Codec[Long] = Codec.simple(_.toString, safe(Type.bigint)(_.toLong), Type.bigint)

@deprecated(
"As of MySQL 8.0.17, the display width attribute for integer data types is deprecated. It will no longer be supported in future versions of MySQL.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,37 @@ object Type:
given EqType: Eq[Type] = Eq.fromUniversalEquals

def bit(size: Int): Type = Type(s"bit($size)")
val bit: Type = Type("bit")
val bit: Type = Type("bit")

def tinyint(n: Int): Type = Type(s"tinyint($n)")
val tinyint: Type = Type("tinyint")
val tinyint: Type = Type("tinyint")

def utinyint(n: Int): Type = Type(s"tinyint($n) unsigned")
val utinyint: Type = Type("tinyint unsigned")
val utinyint: Type = Type("tinyint unsigned")

def smallint(n: Int): Type = Type(s"smallint($n)")
val smallint: Type = Type("smallint")
val smallint: Type = Type("smallint")

def usmallint(n: Int): Type = Type(s"smallint($n) unsigned")
val usmallint: Type = Type("smallint unsigned")
val usmallint: Type = Type("smallint unsigned")

def mediumint(n: Int): Type = Type(s"mediumint($n)")
val mediumint: Type = Type("mediumint")
val mediumint: Type = Type("mediumint")

def umediumint(n: Int): Type = Type(s"mediumint($n) unsigned")
val umediumint: Type = Type("mediumint unsigned")
val umediumint: Type = Type("mediumint unsigned")

def int(n: Int): Type = Type(s"int($n)")
val int: Type = Type("int")
val int: Type = Type("int")

def uint(n: Int): Type = Type(s"int($n) unsigned")
val uint: Type = Type("int unsigned")
val uint: Type = Type("int unsigned")

def bigint(n: Int): Type = Type(s"bigint($n)")
val bigint: Type = Type("bigint")
val bigint: Type = Type("bigint")

def ubigint(n: Int): Type = Type(s"bigint($n) unsigned")
val ubigint: Type = Type("bigint unsigned")
val ubigint: Type = Type("bigint unsigned")

def decimal(accuracy: Int = 10, scale: Int = 0): Type = Type(s"decimal($accuracy, $scale)")

Expand Down Expand Up @@ -83,15 +83,15 @@ object Type:
val date: Type = Type("date")

def datetime(fsp: 0 | 1 | 2 | 3 | 4 | 5 | 6): Type = Type(s"datetime($fsp)")
val datetime: Type = Type("datetime")
val datetime: Type = Type("datetime")

def timestamp(fsp: 0 | 1 | 2 | 3 | 4 | 5 | 6): Type = Type(s"timestamp($fsp)")
val timestamp: Type = Type("timestamp")
val timestamp: Type = Type("timestamp")

def time(fsp: 0 | 1 | 2 | 3 | 4 | 5 | 6): Type = Type(s"time($fsp)")
val time: Type = Type("time")
val time: Type = Type("time")

def year(digit: 4): Type = Type(s"year($digit)")
val year: Type = Type("year")
val year: Type = Type("year")

val boolean: Type = Type("boolean")

0 comments on commit 3ee6b28

Please sign in to comment.