-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b348f23
commit 3d0d160
Showing
13 changed files
with
196 additions
and
64 deletions.
There are no files selected for viewing
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
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
...on-errors/src/main/scala/hmda/submissionerrors/repositories/PostgresEnhancedProfile.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package hmda.submissionerrors.repositories | ||
|
||
import com.github.tminglei.slickpg.{ ExPostgresProfile, PgArraySupport } | ||
import slick.basic.Capability | ||
|
||
trait PostgresEnhancedProfile extends ExPostgresProfile with PgArraySupport { | ||
override protected def computeCapabilities: Set[Capability] = | ||
super.computeCapabilities + slick.jdbc.JdbcCapabilities.insertOrUpdate | ||
|
||
override val api: API = new API {} | ||
|
||
// NOTE: You need to use the super.API syntax otherwise the implicits won't resolve correctly | ||
trait API extends super.API with ArrayImplicits { | ||
implicit val simpleStrVectorTypeMapper: DriverJdbcType[Vector[String]] = | ||
new SimpleArrayJdbcType[String]("text").to(_.toVector) | ||
} | ||
} | ||
object PostgresEnhancedProfile extends PostgresEnhancedProfile |
Oops, something went wrong.