scala - 为什么我无法从 slick 官方文档中找到类 Table 的定义?
问题描述
我想找到类表的定义:
final class MessageTable(tag: Tag)
extends Table[Message](tag, "message")
我只能通过官方文档找到此表:https ://scala-slick.org/doc/3.3.3/api/index.html#slick.model.Table
case classTable(name: QualifiedName, columns: Seq[Column], primaryKey: Option[PrimaryKey], foreignKeys: Seq[ForeignKey], indices: Seq[Index], options: Set[TableOption[_]] = Set()) extends Product with Serializable
作为文档,它是在 scala.model 中定义的案例类
但是当使用 Idea 查找表的定义时,使用示例代码,它在 RelationalProfile.scala 中定义:
abstract class Table[T](_tableTag: Tag, _schemaName: Option[String], _tableName: String) extends AbstractTable[T](_tableTag, _schemaName, _tableName)
那么为什么我在官方文档中找不到定义?因为它是抽象的?但是类表中的所有方法都已定义(def xxx =),所以我认为类表不需要是抽象的
谢谢!
解决方案
推荐阅读
- android - 如何使用包含数字并包含语言排序的字符串对对象进行排序?
- java - 在泛型中传递接口会做什么?
- python - 将字符串与文本进行比较以在正确的位置设置标点符号
- ios - 如何在IOS原生分享中添加应用图标?
- javascript - 使用循环在 React 应用程序中的 Redux 中向数组添加元素的问题
- variables - Julia - 如何正确连接未定义的变量
- firebase - Streambuilder 中的动画以显示 Firebase 内容
- python - swagger-codegen 不会为嵌套对象生成模型
- reactjs - 将渲染的组件输出发送到后端
- php - 在 Laravel 中模拟时抛出 RequestException 的实例