Skip to content

Commit

Permalink
-Xsource:3
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Sep 29, 2024
1 parent 66acb51 commit 2b5daa4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name := "slick-codegen-example"
inThisBuild(
List(
scalaVersion := "2.13.15",
scalacOptions += "-Xsource:3",
githubWorkflowPublishTargetBranches := Seq(),
githubWorkflowBuild += WorkflowStep.Sbt(List("run")),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
package slick.examples.codegen

import slick.jdbc.H2Profile

object Tables extends demo.Tables {
// or just use object demo.Tables, which is hard-wired to the driver stated during generation
override val profile = slick.jdbc.H2Profile
override val profile: H2Profile.type = slick.jdbc.H2Profile
}

import scala.concurrent.Await
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.*
import scala.language.postfixOps

import Tables._
import Tables.profile.api._
import scala.concurrent.ExecutionContext.Implicits.global
import slick.examples.codegen.Tables.*
import slick.examples.codegen.Tables.profile.api.*

object Example extends App {
// connection info for a pre-populated throw-away, in-memory db for this demo, which is freshly initialized on every
Expand Down

0 comments on commit 2b5daa4

Please sign in to comment.