MySQL & MariaDB
v1.0.0
Lint MySQL and MariaDB schemas, queries, and migrations for performance, security, and best practices.
Performance(8)
Quality(4)
Use the InnoDB storage engine
Use InnoDB for transactions, foreign keys, and row-level locking instead of MyISAM.
Enable strict SQL mode
Run with STRICT_TRANS_TABLES so invalid or out-of-range values error instead of silently changing.
Choose the narrowest correct column types
Pick the smallest data type that fits the domain instead of defaulting to BIGINT or wide VARCHAR.
Automate MySQL & MariaDB checks on every PR
BeforeMerge scans your pull requests against all 14 MySQL & MariaDB rules automatically. Get actionable feedback before code ships.