title: Updating db row scala slick
body: <p>I have following code which inserts row into table named luczekInfo and function to get data from database. My question is how to make function to update columns from table luczekInfo, on rows returned by get(id) function. What is the best way to update columns values in Slick?</p>
  
  <pre><code>def create(profil: luczekInfo): Either[Failure, luczekInfo] = {
    try {
      val id = db.withSession {
        LuczekInfo returning LuczekInfo.id insert profil
      }
      Right(profil.copy(id = Some(id)))
    } catch {
      case e: SQLException =&gt;
        Left(databaseError(e))
    }
  }
  
  def get(id: Int): Either[Failure, luczekInfo] = {
    try {
      db.withSession {
        LuczekInfo.findById(id).firstOption match {
          case Some(profil: luczekInfo) =&gt;
            Right(profil)
              case _ =&gt;
                Left(notFoundError(id))
        }
      }
    } catch {
      case e: SQLException =&gt;
        Left(databaseError(e))
    }
  }
  </code></pre>
  
  <p>Thanks in advance for answers.</p>