Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we tut-ify tsql section? #128

Open
d6y opened this issue Jan 13, 2017 · 1 comment
Open

Can we tut-ify tsql section? #128

d6y opened this issue Jan 13, 2017 · 1 comment

Comments

@d6y
Copy link
Contributor

d6y commented Jan 13, 2017

Couldn't find a way to tut-ify the tsql section.

The following code works fine in a file if you compile it.
Pasting this into the REPL (e.g., after starting SBT in the chapter07 project)...

object Module {
  import slick.backend.StaticDatabaseConfig
  @StaticDatabaseConfig("file:src/main/resources/application.conf#tsql")
  object TsqlExample {

    import slick.driver.H2Driver.api._

    val query: DBIO[Seq[String]] =
      tsql""" select "content" from "message" """
  }
}

...gives this error:

Cannot load @StaticDatabaseConfig("file:src/main/resources/application.conf#tsql"): 
Configured Slick driver slick.driver.H2Driver$ is not an instance of requested 
profile slick.driver.JdbcProfile
    tsql""" select "content" from "message" """
    ^
@d6y
Copy link
Contributor Author

d6y commented Dec 19, 2019

We can now try this against mdoc, as we've ported to mdoc now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant