FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(sqlite): do not create an empty database when the file is missing · Issue #798 · QueryaHub/Querya-Desktop · GitHub

fix(sqlite): do not create an empty database when the file is missing #798

Description

Summary

openDatabase without readOnly creates the file if it does not exist. Test Connection and Table Browser on a typo path (/tmp/oops.db) leave an empty .db on disk and look like a successful empty catalog.

Scope

  • For an existing saved connection, open with a flag that fails if the file is absent (or stat first). Creating a new connection from the form may still create the file — only after the user confirms Save, not on Test.
  • Clear error: file not found vs corrupt vs permission.
  • Tests: testConnection / connect on a missing path does not create the file.

Out of scope

  • In-memory inMemoryDatabasePath (tests / demo).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconnectionsDatabase connections, URI parsing, poolssqliteSQLite database driver and workspace

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL