MariaDB implementation of slendium/ocd.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
C. Fahner 8d4ddc9330 Implement enforceSchema() (#6)
Adds Database implementation with ::enforceSchema() method.

Co-authored-by: C. Fahner <cfahner.git.ixuk9phi@slendium.org>
Reviewed-on: #6
2026-09-07 15:20:17 +02:00
src Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
.gitignore Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
composer.json Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
composer.lock Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
phpstan.neon Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
phpunit-bootstrap.php Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
phpunit.xml Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00
README.md Implement enforceSchema() (#6) 2026-09-07 15:20:17 +02:00

ocd-mariadb

MariaDB implementation of the slendium/ocd ORM.

Installation

Run composer require slendium/ocd-mariadb to add it to your project.

Testing

Testing the implementation requires setting up a test database. Create a file called phpunit-dbconfig.php and declare the following constants: MARIA_HOST, MARIA_DBNAME, MARIA_USER and MARIA_PASS. All must be strings, but the username and password may also be null. The test database must be empty before running the tests.