@@ -44,71 +44,79 @@ Also, there are a few **extension functions** available on `Connection`,
4444
4545
4646** NOTE:** This is an experimental module, and for now,
47- we only support four databases: MS SQL, MariaDB, MySQL, PostgreSQL, and SQLite .
47+ we only support these databases: MS SQL, MariaDB, MySQL, PostgreSQL, SQLite, and DuckDB .
4848
4949Moreover, since release 0.15 we support the possibility to register custom SQL database, read more in our [ guide] ( readSqlFromCustomDatabase.md ) .
5050
5151Additionally, support for JSON and date-time types is limited.
5252Please take this into consideration when using these functions.
5353
54- ## Getting started with reading from SQL database in Gradle Project
54+ ## Getting started with reading from SQL database in a Gradle Project
5555
56- In the first , you need to add a dependency
56+ First , you need to add a dependency
5757
5858``` kotlin
5959implementation(" org.jetbrains.kotlinx:dataframe-jdbc:$dataframe_version " )
6060```
6161
62- after that, you need to add a dependency for a JDBC driver for the used database , for example
62+ after that, you need to add the dependency for the database's JDBC driver, for example
6363
6464For ** MariaDB** :
6565
6666``` kotlin
6767implementation(" org.mariadb.jdbc:mariadb-java-client:$version " )
6868```
6969
70- Maven Central version could be found [ here] ( https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client ) .
70+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client ) .
7171
7272For ** PostgreSQL** :
7373
7474``` kotlin
7575implementation(" org.postgresql:postgresql:$version " )
7676```
7777
78- Maven Central version could be found [ here] ( https://mvnrepository.com/artifact/org.postgresql/postgresql ) .
78+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/org.postgresql/postgresql ) .
7979
8080For ** MySQL** :
8181
8282``` kotlin
8383implementation(" com.mysql:mysql-connector-j:$version " )
8484```
8585
86- Maven Central version could be found [ here] ( https://mvnrepository.com/artifact/com.mysql/mysql-connector-j ) .
86+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/com.mysql/mysql-connector-j ) .
8787
8888For ** SQLite** :
8989
9090``` kotlin
9191implementation(" org.xerial:sqlite-jdbc:$version " )
9292```
9393
94- Maven Central version could be found [ here] ( https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc ) .
94+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc ) .
9595
9696For ** MS SQL** :
9797
9898``` kotlin
9999implementation(" com.microsoft.sqlserver:mssql-jdbc:$version " )
100100```
101101
102- Maven Central version could be found [ here] ( https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc ) .
102+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc ) .
103103
104- In the second, be sure that you can establish a connection to the database.
104+ For ** DuckDB ** :
105105
106- For this, usually, you need to have three things: a URL to a database, a username, and a password.
106+ ``` kotlin
107+ implementation(" org.duckdb:duckdb_jdbc:$version " )
108+ ```
109+
110+ The Maven Central version can be found [ here] ( https://mvnrepository.com/artifact/org.duckdb/duckdb_jdbc ) .
111+
112+ Next, be sure that you can establish a connection to the database.
113+
114+ For this, usually, you need to have three things: a URL to the database, a username, and a password.
107115
108- Call one of the following functions to collect data from a database and transform it to the dataframe.
116+ Call one of the following functions to collect data from the database and transform it to a dataframe.
109117
110- For example, if you have a local PostgreSQL database named as ` testDatabase ` with table ` Customer ` ,
111- you could read first 100 rows and print the data just copying the code below:
118+ For example, if you have a local PostgreSQL database named ` testDatabase ` with a table ` Customer ` ,
119+ you can read the first 100 rows and print the data by just copying the code below:
112120
113121``` kotlin
114122import org.jetbrains.kotlinx.dataframe.io.DbConnectionConfig
@@ -127,7 +135,7 @@ val df = DataFrame.readSqlTable(dbConfig, tableName, 100)
127135df.print ()
128136```
129137
130- Find a full example project [ here] ( https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/ ) .
138+ You can find a full example project [ here] ( https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/ ) .
131139
132140## Getting Started with Notebooks
133141
@@ -317,7 +325,7 @@ Note that reading from the `ResultSet` could potentially change its state.
317325
318326The ` dbType: DbType ` parameter specifies the type of our database (e.g., PostgreSQL, MySQL, etc.),
319327supported by a library.
320- Currently, the following classes are available: ` H2, MsSql, MariaDb, MySql, PostgreSql, Sqlite ` .
328+ Currently, the following classes are available: ` H2, MsSql, MariaDb, MySql, PostgreSql, Sqlite, DuckDb ` .
321329
322330Also, users have an ability to pass objects, describing their custom databases, more information in [ guide] ( readSqlFromCustomDatabase.md ) .
323331
@@ -525,7 +533,7 @@ This function reads the schema from a `ResultSet` object provided by the user.
525533
526534The ` dbType: DbType ` parameter specifies the type of our database (e.g., PostgreSQL, MySQL, etc.),
527535supported by a library.
528- Currently, the following classes are available: ` H2, MariaDb, MySql, PostgreSql, Sqlite ` .
536+ Currently, the following classes are available: ` H2, MsSql, MariaDb, MySql, PostgreSql, Sqlite, DuckDB ` .
529537
530538Also, users have an ability to pass objects, describing their custom databases, more information in [ guide] ( readSqlFromCustomDatabase.md ) .
531539
0 commit comments