mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The page listed images and requirements, which left the reader to work out the pattern themselves. There is a pattern: the databases are not fifteen separate questions but seven families, and inside a family the answer is the same one. Each family now says what IT is missing. PostgreSQL-wire and MySQL-wire need no code at all, only a live run against their dialect - that is where CockroachDB's s390x image could be won. Enterprise SQL needs a whole backend each, and the driver is the obstacle only for Db2, whose cgo-only driver cannot be in a nine-architecture build. Embedded databases need a pure-Go driver before anything else. Columnar engines pass the driver gate and fail the second one: WeKan updates single cards constantly, and they are built for the opposite. Key-value stores would have to have indexes, filters and atomicity implemented inside FerretDB, which is not a backend but a database. And what already speaks MongoDB needs no FerretDB at all - the reason for this page is that on ppc64le, s390x, riscv64 and loong64 that family has no members. The page opens with all of it in five sentences and one table, because the conclusion - that the most valuable work is verifying the three backends that already exist, not writing a fourth - was previously only visible to whoever read to the end. Corrections while checking: Oracle DOES have a pure-Go driver (sijms/go-ora implements the TNS protocol itself), so it is not blocked by cgo the way Db2 is; and Cassandra belongs in the CPU table, since its image covers ppc64le and s390x. Thanks to xet7 !
Databases
WeKan stores its data in a MongoDB-compatible database. That can be MongoDB
itself, or FerretDB — which speaks the MongoDB wire protocol and stores the data
in SQLite, PostgreSQL, MySQL, MariaDB or SAP HANA. The default is FerretDB v1
with its embedded SQLite, so a fresh docker compose up -d needs no database
server at all.
| Directory | What is in it |
|---|---|
| FerretDB/1/ | FerretDB v1 — the default. SQLite, PostgreSQL, MySQL, MariaDB, SAP HANA |
| FerretDB/2/ | FerretDB 2 — PostgreSQL with the DocumentDB extension |
| MongoDB/ | MongoDB itself: drivers, versions, the OpLog, and old CPUs |
| Migrations/ | WeKan's own schema migrations and how they are verified |
| ToroDB/ | ToroDB — a MongoDB proxy to PostgreSQL. No longer developed |
FerretDB
Replacing MongoDB with FerretDB. Both of the v1 backends WeKan ships by default are confirmed working with a real Meteor 3 client — the embedded SQLite and vanilla PostgreSQL (#6509); MySQL, MariaDB and SAP HANA are experimental.
- FerretDB v1 — the five backends, and how to start each
- FerretDB 2 + PostgreSQL install
- https://forums.meteor.com/t/ferretdb-1-18-now-has-oplog-support-trying-replace-mongodb-6-x-with-ferretdb-postgresql-or-ferretdb-sqlite/61092
MongoDB
- Driver-System.md — which Node driver is used for which server version
- Version-Management.md — detecting the server version and switching binaries
- Compatibility-Guide.md — MongoDB 3.0 … 8.0 with Meteor
- Oplog-Configuration.md — why the OpLog matters, and how to enable it
- OpLog-Enablement.md — its status per deployment platform
- avx-qemu.md — MongoDB 5+ on a CPU without AVX
- raspi4-qemu.md — MongoDB 5+ on a Raspberry Pi 4 and older
Migrations
- Migrations/ — the schema-migration system, its review notes and
verify-migrations.sh
ToroDB
ToroDB is not developed anymore. ToroDB was about adding a MongoDB proxy to PostgreSQL or MySQL.
- ToroDB/PostgreSQL/ — the compose file and notes kept here