title: Slick insert into postgreSQL
body: <p>I am just trying to add a row from slick to my postgreSQL Database.</p>
  
  <p>Here what I am trying to do :</p>
  
  <pre><code> val dbConfig = DatabaseConfigProvider.get[JdbcProfile](Play.current)
   import dbConfig.driver.api._
   val query = Task += new TaskRow(5, "taskName", status = "other")
   println(Task.insertStatement)
   val resultingQuery = dbConfig.db.run(query).map(res =&gt; "Task successfully added").recover {
        case ex: Exception =&gt; ex.getCause.getMessage
      }
  </code></pre>
  
  <p>Here the result of <code>println</code> :</p>
  
  <p><em>insert into "task" ("taskname","description","status","datetask","pediocitynumber","periodicitytype") values (?,?,?,?,?,?)</em></p>
  
  <p>I don't have any result exception or success from the resulting query.</p>
  
  <p>Code generate by slick-codegen 3.1.1 :</p>
  
  <pre><code>case class TaskRow(taskid: Int, taskname: String, description: Option[String] = None, status: String, datetask: Option[java.sql.Timestamp] = None, pediocitynumber: Option[Int] = None, periodicitytype: Option[String] = None)
    /** GetResult implicit for fetching TaskRow objects using plain SQL queries */
    implicit def GetResultTaskRow(implicit e0: GR[Int], e1: GR[String], e2: GR[Option[String]], e3: GR[Option[java.sql.Timestamp]], e4: GR[Option[Int]]): GR[TaskRow] = GR{
      prs =&gt; import prs._
      TaskRow.tupled((&lt;&lt;[Int], &lt;&lt;[String], &lt;&lt;?[String], &lt;&lt;[String], &lt;&lt;?[java.sql.Timestamp], &lt;&lt;?[Int], &lt;&lt;?[String]))
    }
    /** Table description of table task. Objects of this class serve as prototypes for rows in queries. */
    class Task(_tableTag: Tag) extends Table[TaskRow](_tableTag, "task") {
      def * = (taskid, taskname, description, status, datetask, pediocitynumber, periodicitytype) &lt;&gt; (TaskRow.tupled, TaskRow.unapply)
      /** Maps whole row to an option. Useful for outer joins. */
      def ? = (Rep.Some(taskid), Rep.Some(taskname), description, Rep.Some(status), datetask, pediocitynumber, periodicitytype).shaped.&lt;&gt;({r=&gt;import r._; _1.map(_=&gt; TaskRow.tupled((_1.get, _2.get, _3, _4.get, _5, _6, _7)))}, (_:Any) =&gt;  throw new Exception("Inserting into ? projection not supported."))
  
      /** Database column taskid SqlType(serial), AutoInc, PrimaryKey */
      val taskid: Rep[Int] = column[Int]("taskid", O.AutoInc, O.PrimaryKey)
      /** Database column taskname SqlType(text) */
      val taskname: Rep[String] = column[String]("taskname")
      /** Database column description SqlType(text), Default(None) */
      val description: Rep[Option[String]] = column[Option[String]]("description", O.Default(None))
      /** Database column status SqlType(statustask) */
      val status: Rep[String] = column[String]("status")
      /** Database column datetask SqlType(timestamp), Default(None) */
      val datetask: Rep[Option[java.sql.Timestamp]] = column[Option[java.sql.Timestamp]]("datetask", O.Default(None))
      /** Database column pediocitynumber SqlType(int4), Default(None) */
      val pediocitynumber: Rep[Option[Int]] = column[Option[Int]]("pediocitynumber", O.Default(None))
      /** Database column periodicitytype SqlType(periodicitytype), Default(None) */
      val periodicitytype: Rep[Option[String]] = column[Option[String]]("periodicitytype", O.Default(None))
    }
    /** Collection-like TableQuery object for table Task */
    lazy val Task = new TableQuery(tag =&gt; new Task(tag))
  </code></pre>
  
  <p>Could someone explain what I am doing wrong?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>To clarify my question : </p>
  
  <p>The row is not added to the table, it seems that nothing happen. I can't see any exception or error thrown.
  I think it could come from the sql statement and the questions marks (values (?,?,?,?,?,?)). It should be the actual values of the fields, right?</p>
  
  <p><strong>More code:</strong></p>
  
  <pre><code>class Application @Inject()(dbConfigProvider: DatabaseConfigProvider) extends Controller {
  
        def index = Action {
          Ok(views.html.main())
        }
  
  
        def taskSave = Action.async { implicit request =&gt;
          println(request.body.asJson)
          val dbConfig = DatabaseConfigProvider.get[JdbcProfile](Play.current)
          import dbConfig.driver.api._
          val query = Task += new TaskRow(5, "taskName", status = "other")
          println(Task.insertStatement)
          println(query)
          val resultingQuery = dbConfig.db.run(query).map(res =&gt; "TAsk successfully added").recover {
            case ex: Exception =&gt; ex.getCause.getMessage
          }
          resultingQuery.map(r =&gt; println("result : " + r))
          Future(Ok(""))
        }
  }
  </code></pre>
  
  <p>route :</p>
  
  <pre><code>PUT   /task-save     controllers.Application.taskSave
  </code></pre>