All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ml.Ref.scala Maven / Gradle / Ivy

There is a newer version: 1.1.0-RC3
Show newest version
package info.hupel.isabelle.ml

import scala.math.BigInt

final case class Ref[A : Opaque](id: BigInt) {
  val table: String = Opaque[A].table
  val read: Expr[A] =
    Expr.uncheckedLiteral[BigInt => A](s"$table.read")(id)
  val delete: Expr[Unit] =
    Expr.uncheckedLiteral[BigInt => Unit](s"$table.delete")(id)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy