Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sheet IDs in URL for read_gsheet() and COPY TO #29

Merged
merged 7 commits into from
Oct 29, 2024

Conversation

archiewood
Copy link
Member

@archiewood archiewood commented Oct 25, 2024

Resolves #8

a generic GSheets URL is

https://docs.google.com/spreadsheets/d/<spreadsheet_id>/edit?gid=<sheet_id>#gid=<sheet_id>

COPY TO

COPY <table> TO 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=1295634987#gid=1295634987';

read_gsheet()

FROM read_gsheet('https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit?gid=1295634987#gid=1295634987');

it extracts the sheet ID (eg 1295634987 above) to determine which sheet in the workbook to read/write

@archiewood archiewood changed the title Copy TO choose sheet COPY TO choose sheet Oct 25, 2024
Copy link
Member Author

@archiewood archiewood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also bring this functionality to read_gsheet - it should get the sheetID from the URL

@archiewood archiewood changed the title COPY TO choose sheet Use sheet IDs in URL for read_gsheet() and COPY TO Oct 29, 2024
@archiewood archiewood merged commit b90b227 into main Oct 29, 2024
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement sheet name for COPY TO
1 participant