DuckDB-GSheets: Read and Write Google Sheets in Pure SQL (github.com) 11 points by archiewood 1y ago ↗ HN
[–] archiewood 1y ago ↗ DuckDB GSheets is a DuckDB extension that allows you to read and write data from Google Sheets.-- Installinstall gsheets from community;load gsheets;-- Authenticate with the browsercreate secret (type gsheet);-- Readselect * from 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...'-- WriteCOPY <table_name> to 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...' (format gsheet);
1 comment
[ 12.6 ms ] story [ 15.5 ms ] thread-- Install
install gsheets from community;
load gsheets;
-- Authenticate with the browser
create secret (type gsheet);
-- Read
select * from 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...'
-- Write
COPY <table_name> to 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...' (format gsheet);