Skip to content

Commit

Permalink
Update database URLs and dependencies (#802)
Browse files Browse the repository at this point in the history
Changed MariaDB test URLs to port 3306 for standardization. Updated MySQL connector implementation in docs and bumped versions for H2, MSSQL, MySQL, PostgreSQL, and SQLite in `libs.versions.toml`.
  • Loading branch information
zaleslaw authored Jul 31, 2024
1 parent 3d7abab commit e261f28
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class MySqlH2Test {
"""
SELECT
t1.id,
t1.enumCol,
t1.enumCol
FROM table1 t1
JOIN table2 t2 ON t1.id = t2.id
""".trimIndent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import java.sql.DriverManager
import java.util.Properties
import kotlin.reflect.typeOf

private const val URL = "jdbc:mariadb://localhost:3307/imdb"
private const val URL2 = "jdbc:mariadb://localhost:3307"
private const val URL = "jdbc:mariadb://localhost:3306/imdb"
private const val URL2 = "jdbc:mariadb://localhost:3306"
private const val USER_NAME = "root"
private const val PASSWORD = "pass"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.sql.DriverManager
import java.sql.SQLException
import kotlin.reflect.typeOf

private const val URL = "jdbc:mariadb://localhost:3307"
private const val URL = "jdbc:mariadb://localhost:3306"
private const val USER_NAME = "root"
private const val PASSWORD = "pass"
private const val TEST_DATABASE_NAME = "testKDFdatabase"
Expand Down
2 changes: 1 addition & 1 deletion docs/StardustDocs/topics/readSqlDatabases.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ implementation("org.postgresql:postgresql:$version")
For MySQL:

```kotlin
implementation("mysql:mysql-connector-java:$version")
implementation("com.mysql:mysql-connector-j:$version")
```

For SQLite:
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ serialization = "1.7.0"
fuel = "2.3.1"
poi = "5.2.5"
mariadb = "3.3.2"
h2db = "2.2.224"
mssql = "12.6.1.jre11"
mysql = "8.3.0"
postgresql = "42.7.2"
sqlite = "3.45.1.0"
h2db = "2.3.230"
mssql = "12.6.3.jre11"
mysql = "9.0.0"
postgresql = "42.7.3"
sqlite = "3.45.3.0"
jtsCore = "1.18.1"
kotlinDatetime = "0.6.0"
openapi = "2.1.20"
Expand Down

0 comments on commit e261f28

Please sign in to comment.