slick

    8

    1答えて

    私は、次のbuild.sbtファイルを持っている:私は私自身の(現在の)プロジェクトのDEBUGレベルのレポートを有効にするが、別のためにそれを無効にするにはどうすればよい version := "0.1" scalaVersion := "2.10.0-RC1" scalacOptions := Seq("-unchecked", "-deprecation", "-encoding",

    27

    4答えて

    私はMySQLに問い合わせるためにSlickを使用する方法を学んでいます。私が知りたいのですがどのような Q.query[(Int,Int), Visit](""" select * from visit where vistor = ? and location_code = ? """).firstOption(visitorId,locationCode) は、私は場所のコレ

    11

    5答えて

    私はscalaプロジェクトでslickを使用していくつかのテーブルをクエリしています。 //define table object Addresses extends Table[Address]("assetxs.address") { def id = column[Int]("id", O.PrimaryKey) def street = column[String](

    11

    1答えて

    Slickに小数点以下を許可するDecimal SQL型を作成するように指示するにはどうすればよいですか? デフォルトでは、Slickは以下のコードで気づいた小数点以下の桁数を許可していないようです。これは、データ型がdecimal(10,0)の列をMySQLに作成します。 私はScalaのコードで以下のモデルを持っている: import scala.slick.driver.MySQLDrive

    5

    2答えて

    次の関数はうまくいきますが、まずparent_idで結果をソートし、次にソートしたいと思います。 def getTree = for { (a, c) <- Activities leftJoin Clients on (_.id === _.id_a) } yield (a.id, a.label, a.parent_id, a.order, c.id.?, a=c.name)