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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

jussisaurio
Copy link

@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
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.

1 participant