mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-05-08 09:59:15 -05:00
84254e2fed
It's still early days, e.g. the UI doesn't yet support creating new DBs. However it allows exploring, creating and altering schemas for existing DBs. For now use the config to register new DBs. Changes: * Config-driven life-cycle management for "extra" DBs, i.e. creation and migration-management. * Completely rewire connection & schema access throughout, now using a ConnectionManager abstraction. * Update SubscriptionManager to track subscriptions across multiple DBs. * Per-DB file management. * Improved error handling. * Basic e2e tests including file handling. * Update UI: * Explorer: show, create and alteration of schemas on non-main DBs. * SQL Editor: allow control over which DBs are attached to the connection. This change is breaking: it affects how migrations are loaded from `<traildepot>/migrations/<db>/` and switches transaction default of batch endpoint to false (cheaper). This change does not introduce a notion of multi-tenancy, i.e. create a per-tenant/user DB on the fly based on templates and corresponding traffic routing.