Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: olafurpg/setup-scala@v14
with:
java-version: ${{ matrix.java }}
distribution: adopt
distribution: temurin
- name: Download Athena JDBC v3 Driver
run: mkdir -p lib && curl -L -o lib/athena-v3.jar curl -L -O https://downloads.athena.us-east-1.amazonaws.com/drivers/JDBC/3.5.1/athena-jdbc-3.5.1-with-dependencies.jar
run: mkdir -p lib && curl -L -o lib/athena-v3.jar https://downloads.athena.us-east-1.amazonaws.com/drivers/JDBC/3.5.1/athena-jdbc-3.5.1-with-dependencies.jar
shell: bash
- name: Download Athena JDBC v2 Driver
run: mkdir -p lib && curl -L -o lib/athena-v2.jar https://downloads.athena.us-east-1.amazonaws.com/drivers/JDBC/SimbaAthenaJDBC-2.1.1.1000/AthenaJDBC42-2.1.1.1000.jar
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Library for using [Amazon Athena](https://aws.amazon.com/athena/) JDBC Driver wi
## setup

- Download Athena JDBC driver
- This library supports both Athena (https://docs.aws.amazon.com/athena/latest/ug/jdbc-v3-driver.html) and https://docs.aws.amazon.com/athena/latest/ug/jdbc-v2.html.
- This library supports both Athena JDBC [3.x](https://docs.aws.amazon.com/athena/latest/ug/jdbc-v3-driver.html) and [2.x](https://docs.aws.amazon.com/athena/latest/ug/jdbc-v2.html) driver.
If you encounter problems with a particular version, please feel free to [report it](https://github.com/zaneli/scalikejdbc-athena/issues).
```sh
> mkdir lib
Expand Down
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ libraryDependencies ++= Seq(
)

publishTo := sonatypePublishTo.value

Test / testOptions += Tests.Setup { () =>
// Call this method to prevent stopping test on the way, but I don't know reason why...
java.sql.DriverManager.getDrivers
}
3 changes: 0 additions & 3 deletions src/test/scala/scalikejdbc/athena/UsingOtherDBSpec.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package scalikejdbc.athena

import java.sql.DriverManager
import java.time.{ZoneId, ZonedDateTime}

import org.scalatest.BeforeAndAfter
import org.scalatest.funspec.AnyFunSpec
import scalikejdbc._

class UsingOtherDBSpec extends AnyFunSpec with BeforeAndAfter {
// call this method to prevent stopping test on the way, but i don't know reason why...
DriverManager.getDrivers

before {
NamedDB(User.connectionPoolName).athena { implicit s =>
Expand Down
Loading