MariaDB implementation of slendium/ocd.
- PHP 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Adds Database implementation with ::enforceSchema() method. Co-authored-by: C. Fahner <cfahner.git.ixuk9phi@slendium.org> Reviewed-on: #6 |
||
| src | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| phpstan.neon | ||
| phpunit-bootstrap.php | ||
| phpunit.xml | ||
| README.md | ||
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.