mysqldump is deprecated in current versions of MariaDB, and lando db-export generates a deprecation warning in these versions. This change allows db-export to use mariadb-dump if that command exists and the MARIADB_DATABASE env var is set.
Resolves lando/mariadb#47.
Instead of worrying about which versions of MariaDB use the new command, I'm checking if the command exists and using it if it does.
mysqldump
is deprecated in current versions of MariaDB, andlando db-export
generates a deprecation warning in these versions. This change allowsdb-export
to usemariadb-dump
if that command exists and theMARIADB_DATABASE
env var is set.Resolves lando/mariadb#47.
Instead of worrying about which versions of MariaDB use the new command, I'm checking if the command exists and using it if it does.
I have created a test for the MariaDB service.