MariaDB4j allows the MariaDB database engine to be used as an embedded database within Java applications. It works by packaging ready-to-run native versions of MariaDB, which can be automatically configured and run on various operating systems. The post explores using MariaDB4j from the command line and within Java code, highlighting customization options, interaction methods, and integration with JUnit tests for ephemeral databases. MariaDB4j supports execution without Docker, making it suitable for environments where Docker is less desirable.
Table of contents
1. Introduction2. How Does It Work?3. Command Line Use4. Using From Java5. Using Within JUnit Tests6. SummarySort: