3x-ui/database
MHSanaei e0f41362e2
feat(database): add PostgreSQL as an optional backend alongside SQLite
Lets operators with large client counts or multi-node setups pick PostgreSQL
at install time without breaking the existing SQLite default. Backend is
selected at runtime via XUI_DB_TYPE/XUI_DB_DSN, a small dialect layer keeps
the five JSON_EXTRACT/JSON_EACH queries portable, and a new `x-ui migrate-db`
subcommand copies SQLite data into PostgreSQL in FK-aware order.
2026-05-18 15:40:39 +02:00
..
model refactor(api): emit JSON-text columns as nested objects 2026-05-17 19:04:43 +02:00
db.go feat(database): add PostgreSQL as an optional backend alongside SQLite 2026-05-18 15:40:39 +02:00
dialect.go feat(database): add PostgreSQL as an optional backend alongside SQLite 2026-05-18 15:40:39 +02:00
migrate_data.go feat(database): add PostgreSQL as an optional backend alongside SQLite 2026-05-18 15:40:39 +02:00