Get Started
Usage
Load the extension
Connect to the database and run the following command to load the extension:
Authenticate
To interact with Google Sheets, you need to authenticate your PostgreSQL environment with Google. Run the following command to authenticate:
This command opens a URL in your browser. After getting the token, use the following command to set the token:
Read data
Following is the function signature to read data from Google Sheets:
This function returns tuples.
Here’s an example of reading data from a Google Sheet:
Write data
Following is the function signature to write data to Google Sheets:
Available options are:
Here’s an example of writing data to a Google Sheet: