-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update/sbt-1.8.3
- Loading branch information
Showing
26 changed files
with
128 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Scala Steward: Reformat with scalafmt 3.7.10 | ||
9bcedec20a4fc7adedce8aea4921c05b0c7acfa4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version = "3.5.9" | ||
version = "3.7.10" | ||
maxColumn = 120 | ||
align.preset = most | ||
continuationIndent.defnSite = 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package zio.sql.macros | ||
|
||
|
||
sealed trait GroupByLike[All, Grouped] | ||
|
||
object GroupByLike { | ||
|
||
final case class CanBeGrouped[All, Grouped]() extends GroupByLike[All, Grouped] | ||
final case class CanBeGrouped[All, Grouped]() extends GroupByLike[All, Grouped] | ||
|
||
implicit def createGroupByLike[All, Grouped]: GroupByLike[All, Grouped] = CanBeGrouped[All, Grouped]() | ||
} | ||
implicit def createGroupByLike[All, Grouped]: GroupByLike[All, Grouped] = CanBeGrouped[All, Grouped]() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package zio.sql.macros | ||
package zio.sql.macros | ||
|
||
sealed trait HavingIsSound[AllF, GroupByF, HavingF] | ||
|
||
object HavingIsSound { | ||
|
||
final case class HavingCanBeCalled[AllF, GroupByF, HavingF]() extends HavingIsSound[AllF, GroupByF, HavingF] | ||
|
||
implicit def materializeHavingIsSound[AllF, GroupByF, HavingF]: HavingIsSound[AllF, GroupByF, HavingF] = HavingCanBeCalled[AllF, GroupByF, HavingF]() | ||
implicit def materializeHavingIsSound[AllF, GroupByF, HavingF]: HavingIsSound[AllF, GroupByF, HavingF] = | ||
HavingCanBeCalled[AllF, GroupByF, HavingF]() | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package zio.sql.macros | ||
package zio.sql.macros | ||
|
||
sealed trait IsNotLiteral[F] | ||
|
||
object IsNotLiteral { | ||
|
||
final case class FIsNotLiteral[F]() extends IsNotLiteral[F] | ||
final case class FIsNotLiteral[F]() extends IsNotLiteral[F] | ||
|
||
implicit def materializeIsNotLiteral[F]: IsNotLiteral[F] = { | ||
FIsNotLiteral[F]() | ||
} | ||
} | ||
implicit def materializeIsNotLiteral[F]: IsNotLiteral[F] = | ||
FIsNotLiteral[F]() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package zio.sql.macros | ||
package zio.sql.macros | ||
|
||
sealed trait WhereIsSound[WhereF, GroupByF] | ||
|
||
object WhereIsSound { | ||
final case class WhereCanBeCalled[WhereF, GroupByF]() extends WhereIsSound[WhereF, GroupByF] | ||
|
||
implicit def materializeWhereIsSound[WhereF, GroupByF]: WhereIsSound[WhereF, GroupByF] = | ||
implicit def materializeWhereIsSound[WhereF, GroupByF]: WhereIsSound[WhereF, GroupByF] = | ||
WhereCanBeCalled[WhereF, GroupByF]() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
oracle/src/test/scala/zio/sql/oracle/CustomFunctionDefSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package zio.sql.oracle | ||
|
||
import zio.test.Assertion._ | ||
import zio.test.TestAspect.timeout | ||
import zio.test._ | ||
import zio._ | ||
|
||
object CustomFunctionDefSpec extends OracleRunnableSpec with DualSchema { | ||
import OracleFunctionDef._ | ||
|
||
import Dual._ | ||
|
||
override def specLayered = suite("Oracle FunctionDef")( | ||
test("ltrim2") { | ||
assertZIO(execute(select(Ltrim2("$## foo$#", "#$")).from(dual)).runHead.some)( | ||
equalTo(" foo$#") | ||
) | ||
}, | ||
test("rtrim2") { | ||
assertZIO(execute(select(Rtrim2("$#foo $##", "#$")).from(dual)).runHead.some)( | ||
equalTo("$#foo ") | ||
) | ||
} | ||
) @@ timeout(5.minutes) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package zio.sql.oracle | ||
|
||
import zio.schema.DeriveSchema | ||
import zio.sql.table._ | ||
|
||
trait DualSchema { | ||
object Dual { | ||
case class Dual(dummy: String) | ||
|
||
implicit val dummySchema = DeriveSchema.gen[Dual] | ||
val dual = Table.defineTable[Dual] | ||
val dummy = dual.columns | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters