scala - Slick 3 with H2 database count issue -


we using slick 3 scala , h2 database. versions:

  • slick - 3.0.1
  • h2 driver - 1.4.188
  • scala - 2.11.7

we want number of rows in table. code snippet looks like:

db.run(tables.mytable.length.result) 

our configuration looks like:

import slick.driver.h2driver.api._  val jdbcdriver = "org.h2.driver" val profile = slick.driver.h2driver val db = database.forurl("jdbc:h2:mem:mydbname") 

when run db.run thingy keep getting errors like:

failure(java.sql.sqlexception: no suitable driver found jdbc:h2:mem:mydbname) 

if remove length db.run command works fine. tried size instead of length. same issue. tried bumped versions of slick (to 3.0.3 , 3.1.1) and/or of h2 driver (to 1.4.191) issue remains.

funny fact either length , size work postgresql database (driver).

any ideas or xps issue?

best


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -