question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the intended usage of org.squeryl.Schema in 0.9.7?

See original GitHub issue

Looks like the documentation is still lagging a little behind. The only way I could work out to do it is like the following:

import org.squeryl.PrimitiveTypeMode

object Schema extends org.squeryl.Schema()(PrimitiveTypeMode)
  with PrimitiveTypeMode

But this still uses the deprecated PrimitiveTypeMode object in the implicit argument. The only other way I could think of was:

import org.squeryl.PrimitiveTypeMode

object Schema extends org.squeryl.Schema()(this)
  with PrimitiveTypeMode

but this won’t compile for obvious reasons.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mantovanicommented, Apr 3, 2017

Don’t you think that the website documentation should be updated ?

1reaction
davewhittakercommented, Apr 3, 2017

This is not the proper forum for a request like this. Please take your question to the Squeryl mailing list or Stack Overflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Definition
Scala classes are mapped to tables via instances of org.squeryl. ... Inside the example schema defined above, we could influence the DDL generation...
Read more >
scala - Migrating from Squeryl 0.9.5 to 0.9.6
Corrected answer : You are importing the org.squeryl.PrimitiveTypeMode companion object and also your own extension (object DateTime extends ...
Read more >
Squeryl
Squeryl is a Scala object-relational mapper and domain-specific language for talking to databases in a succinct and typesafe way. We'll use Squeryl with...
Read more >
squeryl in scala - liveBook · Manning
val appDependencies = Seq( jdbc, "org.squeryl" %% "squeryl" % "0.9.5-6" ) ... We're using an H2 database in this example, but most mainstream...
Read more >
squeryl
How to build. Download or clone repository: git clone git://github.com/squeryl/squeryl.git; Open a shell in the project's root directory and launch SBT with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found