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

crgriffiths/Google-Apps-Scripts-JDBC-Connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Google Apps Scripts JDBC Connect

This script is used to write the contents of a range of cells in a Google Sheets Spreadsheet to a MySQL database as a new row for each sheet row.

Usage

Before beginning, ensure the remote database structure has already been created and that the user connecting has the appropriate privileges to access and write to the database as well as MySQL allowing remote access. There is a range of IPs that Google uses in Apps scripts. Those IPs can be found here if you want to whitelist only that range.

To use, upate the values for spreadsheet ID, the range to match the range you will be exporting, and update the database credentials. In the loop batching the spreadsheet values, make sure to include a new line for each column you will be exporting and update the SQL string with the field names mapped to the spreadsheet columns.

About

Simple Google Apps Scripts function to connect to and write to MySQL database from a Google Sheets Spreadsheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors