@@ -21,7 +21,7 @@ Additionally, support for JSON and date-time types is limited.
21
21
Please take this into consideration when using these functions.
22
22
23
23
24
- ## Getting started with reading from SQL database
24
+ ## Getting started with reading from SQL database in Gradle Project
25
25
26
26
In the first, you need to add a dependency
27
27
@@ -81,24 +81,32 @@ val df = DataFrame.readSqlTable(dbConfig, tableName, 100)
81
81
df.print ()
82
82
```
83
83
84
- Find full example project [ here] ( https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/ ) .
84
+ Find a full example project [ here] ( https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/ ) .
85
85
86
86
## Getting Started with Notebooks
87
87
88
88
To use the latest version of the Kotlin DataFrame library
89
- and a specific version of the JDBC driver for your database (MariaDB is used as an example below) in your Notebook, run the following cell.
89
+ and a specific version of the JDBC driver for your database (MariaDB is used as an example below) in your Notebook,
90
+ run the following two cells.
90
91
91
- ```
92
- %use dataframe
92
+ First of all, specify the version of the JDBC driver
93
93
94
+ ```
94
95
USE {
95
96
dependencies("org.mariadb.jdbc:mariadb-java-client:$version")
96
97
}
97
98
```
99
+ Next, import ` Kotlin DataFrame ` library in the cell below.
100
+
101
+ ```
102
+ %use dataframe
103
+ ```
104
+
105
+ ** NOTE:** The order of cell execution is important,
106
+ the dataframe library is waiting for a JDBC driver to force classloading.
98
107
99
108
Find full example Notebook [ here] ( https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/blob/master/notebooks/imdb.ipynb ) .
100
109
101
- ** NOTE:** The user should specify the version of the JDBC driver.
102
110
103
111
## Reading Specific Tables
104
112
0 commit comments