Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit 08a813c

Browse files
committed
Add MySQL driver #7
1 parent 50bb414 commit 08a813c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Keep your SQL database in sync with Google Sheets using [googlesheets-sql-sync](
88

99
Let users manually insert data using Google Sheets while having the power of all available SQL tooling for further processing.
1010

11-
googlesheets-sql-sync uses [JDBC](https://github.com/clojure/java.jdbc) and bundles the PostgreSQL driver.
11+
googlesheets-sql-sync uses [JDBC](https://github.com/clojure/java.jdbc) and bundles the PostgreSQL and MySQL drivers.
1212
Additional drivers can be added any time.
13-
If you would like to add support for SQLite, MySQL or any other SQL database, open an issue and it can probably be added in no time.
13+
If you would like to add support for SQLite or any other SQL database, open an issue and it can probably be added in no time.
1414

1515

1616
## Assumptions and simplifications
@@ -62,7 +62,7 @@ java -jar googlesheets-sql-sync.jar --init
6262
2. Now fill out the missing information in the config file.
6363
1. Use your Google credentials from above.
6464
2. Specify at least one target and one sheet using that target.
65-
3. You can find more DB options in the [JDBC docs](https://jdbc.postgresql.org/documentation/head/connect.html).
65+
3. You can find more DB options in the JDBC docs for [PostgreSQL](https://jdbc.postgresql.org/documentation/head/connect.html) or [MySQL](https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html).
6666
4. Name the `table` as you wish for it to appear in your database.
6767
5. To get a `spreadsheet_id`, open one of [your Google Sheets](https://docs.google.com/spreadsheets) and copy the part between `/d/` and `/edit` from the URL bar in your Browser.
6868
6. Specify the `range` using the `A1:Z10`. Skip the number to select all rows - like `A:ZZ`. You can also specify a _sheet_ if your spreadsheet contains multiple sheets by prefixing th range like `SomeSheet!A:ZZ`.

project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject googlesheets-sql-sync "0.4.10"
1+
(defproject googlesheets-sql-sync "0.5.0"
22
:description "Keep your SQL database in sync with Google Sheets"
33
:url "https://github.com/jorinvo/googlesheets-sql-sync"
44
:license {:name "MIT"
@@ -7,6 +7,7 @@
77
[org.clojure/core.async "0.4.474"]
88
[org.clojure/java.jdbc "0.7.8"]
99
[org.postgresql/postgresql "42.2.4"]
10+
[mysql/mysql-connector-java "8.0.18"]
1011
[org.clojure/tools.cli "0.3.7"]
1112
[http-kit "2.3.0"]
1213
[metosin/jsonista "0.2.0"]

0 commit comments

Comments
 (0)