
scala.co.actioniq.luna.dao.DAOMySQLProfile.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of luna_2.11 Show documentation
Show all versions of luna_2.11 Show documentation
Luna makes Slick DAOs simple
The newest version!
package co.actioniq.luna.dao
import slick.compiler.Phase
import slick.jdbc.MySQLProfile
trait DAOMySQLProfile extends MySQLProfile {
override lazy val updateCompiler = (compiler + new JdbcCodeGen(_.buildUpdate)).addAfter(new IgnoreUpdateCompiler(), Phase.hoistClientOps)
}
object DAOMySQLProfile extends DAOMySQLProfile {
import slick.ast._
//Copied from MySQLProfile
final case class RowNum(sym: AnonSymbol, inc: Boolean) extends NullaryNode with SimplyTypedNode {
type Self = RowNum
def buildType = ScalaBaseType.longType
def rebuild = copy()
}
//Copied from MySQLProfile
final case class RowNumGen(sym: AnonSymbol, init: Long) extends NullaryNode with SimplyTypedNode {
type Self = RowNumGen
def buildType = ScalaBaseType.longType
def rebuild = copy()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy