-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
117 additions
and
37 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
52 changes: 30 additions & 22 deletions
52
ontology-example2/src/main/scala/ru/primetalk/typed/ontology/example2/orderOntology.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
22 changes: 18 additions & 4 deletions
22
...logy-example2/src/test/scala/ru/primetalk/typed/ontology/example2/OrderOntologySpec.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
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,6 +1,8 @@ | ||
// format: off | ||
// DO NOT EDIT! This file is auto-generated. | ||
|
||
// This file enables sbt-bloop to create bloop config files. | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.15") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6") | ||
|
||
// format: on |
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,6 +1,8 @@ | ||
// format: off | ||
// DO NOT EDIT! This file is auto-generated. | ||
|
||
// This file enables sbt-bloop to create bloop config files. | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.15") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6") | ||
|
||
// format: on |
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,6 +1,8 @@ | ||
// format: off | ||
// DO NOT EDIT! This file is auto-generated. | ||
|
||
// This file enables sbt-bloop to create bloop config files. | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.15") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6") | ||
|
||
// format: on |
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
20 changes: 20 additions & 0 deletions
20
...class-schema/src/main/scala/ru/primetalk/typed/ontology/typeclass/schema/ColumnName.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,20 @@ | ||
package ru.primetalk.typed.ontology.typeclass.schema | ||
|
||
/** | ||
* This type class creates a relation between a column and it's name. | ||
*/ | ||
trait ColumnName[C, N <: String] | ||
|
||
/** | ||
* This type class creates a correspondence between a list of columns and a list of names. | ||
*/ | ||
sealed abstract class ColumnsNames[C <: Tuple, N <: Tuple] | ||
|
||
object ColumnsNames: | ||
|
||
given emptyColumnsNames: ColumnsNames[EmptyTuple, EmptyTuple] = new ColumnsNames[EmptyTuple, EmptyTuple] {} | ||
|
||
given nonEmptyColumnsNames[C, CS <: Tuple, N <: String, NS <: Tuple](using ColumnName[C, N], ColumnsNames[CS, NS]): ColumnsNames[C *: CS, N *: NS] = | ||
new ColumnsNames[C *: CS, N *: NS] {} | ||
|
||
end ColumnsNames |
2 changes: 2 additions & 0 deletions
2
...-class-schema/src/main/scala/ru/primetalk/typed/ontology/typeclass/schema/Projector.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
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
2 changes: 2 additions & 0 deletions
2
...-schema/src/main/scala/ru/primetalk/typed/ontology/typeclass/schema/RecordValueType.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
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