Created
April 16, 2024 23:32
-
-
Save megafarad/f49bdc85136bff518c88d6b0526c49bb to your computer and use it in GitHub Desktop.
Document for Slick-pg example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import utils.StringUtils | |
case class Document(id: Option[Long], content: String) { | |
lazy val abbreviatedContent: String = StringUtils.ellipses(content, 100) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment