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

Turso CLI database upload flow for AWS #935

Merged
merged 9 commits into from
Mar 12, 2025
Merged

Turso CLI database upload flow for AWS #935

merged 9 commits into from
Mar 12, 2025

Conversation

jussisaurio
Copy link
Contributor

@jussisaurio jussisaurio commented Jan 21, 2025

  • On turso db create, detect whether group is on AWS based on aws- prefix of group location (TODO: better approach?)
  • If --from-file is passed and the group is on AWS`, do the following:
    • Client side verifications (WAL mode, page size, autovacuum off, UTF-8 encoding, PRAGMA quick_check)
    • Automatically put DB in WAL mode and truncating checkpoint it if it isn't already in WAL mode
    • Create DB as "draft", meaning not yet usable
    • Create 1h token for new DB
    • Upload database, showing a progress spinner to the user

Error handling:

  • Delete created database if creating DB token or upload fails

@jussisaurio jussisaurio changed the title WIP Turso CLI database upload flow for AWS Turso CLI database upload flow for AWS Feb 7, 2025
@jussisaurio jussisaurio marked this pull request as ready for review February 19, 2025 13:22
@jussisaurio jussisaurio merged commit 0642478 into main Mar 12, 2025
2 checks passed
@jussisaurio jussisaurio deleted the aws-upload-v2 branch March 12, 2025 13:23
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.

2 participants