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

molecule.datalog.datomic.spi.DatomicSpiZioBase.scala Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
package molecule.datalog.datomic.spi

import molecule.base.error._
import molecule.boilerplate.ast.Model._
import molecule.core.spi.{Conn, Renderer}
import molecule.datalog.core.query.Model2DatomicQuery
import zio.{Task, ZIO}

trait DatomicSpiZioBase extends Renderer {

  protected def printInspectQuery(
    label: String,
    elements: List[Element]
  ): ZIO[Conn, MoleculeError, Unit] = ZIO.succeed {
    val queries = new Model2DatomicQuery(elements).getDatomicQueries(true)._3
    printRaw(label, Nil, queries)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy