How to determine the required parameters from the Scala API documentation?

I find it difficult to describe the Scala API documentation.

For example, I defined a timestamp for use in the database.

def postedDate = column[Timestamp]("posted_date", O NotNull, O Default new Timestamp(Calendar.getInstance.getTimeInMillis), O DBType("timestamp"))

If I hadn't read a few examples of which none were in the API document, how could I build this statement?
From the Column documentation, how can I find out the parameters?
I suggested that this has something to do with TimestampTypeMapperDelegate , but it's still not crystal clear how to use it.

+3
source share
1 answer

, scaladoc , , , , , . , NamedColumn.

, , TypeMapper . TypeMapper , , , (, timestamp). , , , , , . , , , .

, TypeMapper - , BasicProfile TypeMapperDelegate. , , . . BasicProfile, , ScalaQuery , , , .

, BasicTypeMapperDelegates, ( ).

BasicTable , ( ), - - TypeMappers Delegates, .

, , , API, , , , , .

, , , , API . , ( ScalaQuery) , , , (-) . , , , , . , , !

+7

All Articles