jarivas / sql-models
A simple and light Multi Sql model factory
Installs: 36
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:TSQL
Requires
- psr/log: ^3.0
Requires (Dev)
- jarivas/php-env: *
- phpmd/phpmd: ^2.13
- phpstan/phpstan: *
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: 3.*
- symfony/var-dumper: ^6.2
- vimeo/psalm: ^5.4
README
It is a tool to generate Models from differets kinds automatically, those models can CRUD by them selves, even supports relationships throught the method join
How to install
composer require jarivas/sql-models
How to use
Please check the tests code on tests/Unit
Tests
- Requires Docker
- ./vendor/bin/phpunit --testsuite Mysql --filter ModelTest
- ./vendor/bin/phpunit --testsuite Pgsql --filter ModelTest
- ./vendor/bin/phpunit --testsuite Sqlite --filter ModelTest
- ./vendor/bin/phpunit --testsuite Mssql --filter ModelTest