Skip to content

Commit

Permalink
refactor: string interpolation with margins
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarmona committed Jun 1, 2021
1 parent f75567c commit 9db4ff3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/components/Backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,12 @@ class Backend @Inject() (

val plainSqlQuery =
sql"""
select type_id, source_id, flatten(groupArray(feature_set)) from v2g_structure
group by (type_id, source_id)
""".as[V2DStructure]
|select type_id, source_id, flatten(groupArray(feature_set)) from v2g_structure
|group by (type_id, source_id)
|
""".stripMargin.as[V2DStructure]

// 1. Get raw schmema
// 1. Get raw schema
val res = db.run(plainSqlQuery.asTry)
res.map {
case Success(v) =>
Expand Down

0 comments on commit 9db4ff3

Please sign in to comment.