|
|
|
|
|
by t3ntxcles
5 days ago
|
|
There are a couple of very early attempts. lite4mariadb (https://github.com/shyim/lite4mariadb) compiles MariaDB's embedded server (InnoDB) to WASM with a PGlite-style API and IndexedDB persistence, and mysql-wasm (https://github.com/benmerckx/mysql-wasm) does the same for MySQL 9.7. Can't recommend it but I experimented myself with lite4mariadb and hit a few rough edges, e.g. transactions aren't isolated when the callback is async, memory use is insane. Issues are also disabled on the repo (it's a github fork), so there's nowhere to report bugs. General issue of both is them being single-connection and being less battle tested. If translation is acceptable, wordpress playground's sqlite driver (sqlite-database-integration) parses mysql into an ast which is based on my experience is the most proven approach in browser today. Would be genuinely excited if mysql in WASM gets more attention. |
|