我想用 slick 连接一个 postgresql 数据库,但我的问题是如何表示这样的表:
Column | Type | Modifiers | Storage | Description
--------------+-----------------------------+-----------+----------+-------------
id | bigint | not null | plain |
version | integer | not null | plain |
tstamp | timestamp without time zone | not null | plain |
tags | hstore | | extended |
nodes | bigint[] | | extended |
如果有人提示如何更换?在
object Ways extends Table[(?, Int, Int, java.sql.Timestamp, ?, ?, ?)]("WAYS") {
def id = column[?]("id", O.PrimaryKey)
def version = column[Int]("version")
def user_id = column[Int]("user_id")
def tstamp = column[java.sql.Timestamp]("tstamp")
def changeset_id = column[?]("changeset_id")
def tags = column[?]("tags")
def nodes = column[?]("nodes")
}
会Array[String]
是一个解决方案吗?