I am new in scala slick .
why can not found column and O in slick v3.1.1
please view this example code :
import slick.driver.PostgresDriver
import slick.lifted.Tag
import slick.model.Table ;
case class Person(id:Int,name:String)
class Persons(tag: Tag) extends Table[Person](tag , "PERSONS") {
def id = column[Long]("id", O.PrimaryKey, O.AutoInc)
def name = column[String]("name", O.NotNull)
}
Update :
I use this document : http://slick.lightbend.com/doc/3.1.1/gettingstarted.html#schema
Simply change your import to:
import slick.driver.PostgresDriver.api._
Looking at your code - this should be the only import that you should need (at least at this stage).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With