You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download the https://github.com/Redislabs-Solution-Architects/riot/releases/latest[latest RIOT distribution] (zip or tar.gz) and unpack the downloaded archive.
@@ -36,7 +39,7 @@ WARNING: Add the appropriate driver jar for your database under the `lib` direct
36
39
For example with MySQL: `lib/mysql-connector-java-5.1.47.jar`
37
40
38
41
=== JSON
39
-
RIOT can read JSON data from a file with the following format:
42
+
RIOT can read and write JSON data in the following format:
40
43
[source,plaintext]
41
44
----
42
45
[
@@ -59,7 +62,7 @@ This data generator relies on the https://github.com/DiUS/java-faker[Faker] libr
59
62
60
63
== Examples
61
64
62
-
=== Importing from databases
65
+
=== Import from databases
63
66
Let's import the following table from a MySQL database running locally:
64
67
[source,plaintext]
65
68
----
@@ -82,7 +85,7 @@ mysql> describe employees;
82
85
riot import db --url "jdbc:mysql://localhost:3306/employees?serverTimezone=PST&useLegacyDatetimeCode=false&useSSL=false" --username root --password --sql "select * from employees" hash --keyspace employee --keys emp_no
83
86
----
84
87
85
-
=== Importing CSV files
88
+
=== Import CSV files
86
89
Here is an excerpt of https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat[airports.dat] available at https://github.com/jpatokal/openflights[openflights]
87
90
----
88
91
1,"Goroka Airport","Goroka","Papua New Guinea","GKA","AYGA",-6.081689834590001,145.391998291,5282,10,"U","Pacific/Port_Moresby","airport","OurAirports"
0 commit comments