Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Recognize externally-dropped databases from driver errors and the health check

Open
#526 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@debba is already working on this.

Since Jul 24, 2026.

Assessment

This issue has not been assessed yet.

Description

Follow-up 2 of #524 (see also #518). Builds on #525 — reuses the same prune/tear-down flow.

Databases dropped outside the app are currently invisible: drivers stringify every error, so a missing database is indistinguishable from a typo, and the health check keeps passing.

Scope:

  • Add a structured "database not found" error classification in the drivers: MySQL errno 1049/1046, Postgres SQLSTATE 3D000, SQLite unable-to-open. Query/metadata failures with this classification trigger the same flow as #525 (prune one database from a multi-db selection, or tear down a single-db session).
  • Make the health check able to see it:
    • MySQL pings with COM_PING, which keeps succeeding after the current database is dropped — the ping should touch the current database instead.
    • SQLite pings through the still-open file handle — the ping should check the file still exists.
  • The health check must distinguish "server unreachable" (tear down the connection) from "one database missing" (prune just that one), instead of tearing everything down after two failed pings.

"Disconnected" means the session, not the saved connection: if the database is recreated later, the saved connection must work again unchanged.

Dominant language
TypeScript
Stars
5.1k
Forks
335
Avg merge
2d 8h
Merged PRs (30d)
62

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TabularisDB/tabularis

All issues in TabularisDB/tabularis

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.