@@ -54,18 +54,18 @@ class MySQLSampleSpec extends FlatSpec with Matchers with DBSettings with Loggin
5454 }
5555
5656 it should " read values with convenience methods" in {
57- val generatedIdFuture : Future [Long ] = AsyncDB .withPool { implicit s =>
57+ val generatedIdFuture : Future [Long ] = NamedAsyncDB ( ' mysql ) .withPool { implicit s =>
5858 withSQL {
5959 insert.into(AsyncLover ).namedValues(
6060 column.name -> " Eric" ,
6161 column.rating -> 2 ,
6262 column.isReactive -> false ,
63- column.createdAt -> createdTime).returningId
63+ column.createdAt -> createdTime)
6464 }.updateAndReturnGeneratedKey.future()
6565 }
6666 // in AsyncLover#apply we are using get with typebinders, specialized getters should work
6767 val generatedId = Await .result(generatedIdFuture, 5 .seconds)
68- val created = DB .readOnly { implicit s =>
68+ val created = NamedDB ( ' mysql ) .readOnly { implicit s =>
6969 withSQL { select.from(AsyncLover as al ).where.eq(al.id, generatedId) }.map((rs : WrappedResultSet ) => {
7070 AsyncLover (
7171 id = rs.long(al.resultName.id),
@@ -109,7 +109,7 @@ class MySQLSampleSpec extends FlatSpec with Matchers with DBSettings with Loggin
109109
110110 it should " update" in {
111111 // updating queries should be successful
112- DB autoCommit { implicit s =>
112+ NamedDB ( ' mysql ) autoCommit { implicit s =>
113113 withSQL { delete.from(AsyncLover ).where.eq(column.id, 1004 ) }.update.apply()
114114 withSQL {
115115 insert.into(AsyncLover ).namedValues(
0 commit comments