Re: HelloSlick! demo program (from typesafe) for 3.0.3 does not work for Oracle. Am I missing something?

27 views
Skip to first unread message

Stefan Zeiger

unread,
Jan 15, 2016, 2:14:21 PM1/15/16
to scala...@googlegroups.com
On 2016-01-15 17:01, Shishir Saxena wrote:
import com.typesafe.slick.driver.oracle.OracleDriver._
You're missing `.api` here, just like below
//import slick.driver.MySQLDriver.api._

If there is a major shift then this would be a major concern as my 
application would be talking to Oracle for sometime and post that would 
be talking to PostGres. I would not like to make any major changes in 
application then due to this migration.
Switching between different database types is done the easiest by using DatabaseConfig, as shown in http://www.typesafe.com/activator/template/slick-multidb-3.1.

--
Stefan Zeiger
Slick Tech Lead
Typesafe - Build Reactive Apps!
Twitter: @StefanZeiger

Shishir Saxena

unread,
Jan 18, 2016, 11:09:29 AM1/18/16
to Slick / ScalaQuery
Ooh...the '.api', It does work. Thanks. It seems that previously when I was trying to use ._api with Oracle driver, I was using an older version of Slick and it did not provide the related support. However, when I bumped up the version in my POM, I did not realize that .api is now available. Thanks again for pointing this.

Switching between different databases seems promising. Would definitely have a look.
Reply all
Reply to author
Forward
0 new messages