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

Commit

Permalink
Add MySQL driver #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jorinvo committed Oct 23, 2019
1 parent 50bb414 commit 08a813c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Keep your SQL database in sync with Google Sheets using [googlesheets-sql-sync](

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

googlesheets-sql-sync uses [JDBC](https://github.com/clojure/java.jdbc) and bundles the PostgreSQL driver.
googlesheets-sql-sync uses [JDBC](https://github.com/clojure/java.jdbc) and bundles the PostgreSQL and MySQL drivers.
Additional drivers can be added any time.
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.
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.


## Assumptions and simplifications
Expand Down Expand Up @@ -62,7 +62,7 @@ java -jar googlesheets-sql-sync.jar --init
2. Now fill out the missing information in the config file.
1. Use your Google credentials from above.
2. Specify at least one target and one sheet using that target.
3. You can find more DB options in the [JDBC docs](https://jdbc.postgresql.org/documentation/head/connect.html).
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).
4. Name the `table` as you wish for it to appear in your database.
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.
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`.
Expand Down
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject googlesheets-sql-sync "0.4.10"
(defproject googlesheets-sql-sync "0.5.0"
:description "Keep your SQL database in sync with Google Sheets"
:url "https://github.com/jorinvo/googlesheets-sql-sync"
:license {:name "MIT"
Expand All @@ -7,6 +7,7 @@
[org.clojure/core.async "0.4.474"]
[org.clojure/java.jdbc "0.7.8"]
[org.postgresql/postgresql "42.2.4"]
[mysql/mysql-connector-java "8.0.18"]
[org.clojure/tools.cli "0.3.7"]
[http-kit "2.3.0"]
[metosin/jsonista "0.2.0"]
Expand Down

0 comments on commit 08a813c

Please sign in to comment.