anax / database-active-record
Anax Database Active Record module for model classes.
Installs: 5 997
Dependents: 7
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- anax/database-query-builder: ^2
Requires (Dev)
- phpunit/phpunit: ^7
README
Anax Database Active Record module is an implementation of the Active Record design pattern for model classes using a database.
The implementation uses the module anax\database-query-builder
which builds upon the module anax\database
.
The module is tested using MySQL and SQLite.
Table of content
Class, interface, trait
The following classes, interfaces and traits exists.
Exceptions
All exceptions are in the namespace Anax\DatabaseActiveRecord\Exception\
. The following exceptions exists and may be thrown.
Basic usage
The Active Record design pattern is implemented through the class Anax\DatabaseActiveRecord\DatabaseActiveRecord
. A model class which wants to use the implementation should extend this class to get access to the methods implementing Active Record usage.
Dependency
This module depends upon, and extends, the database abstraction layer anax\database
.
The module is usually used within an Anax installation but can also be used without Anax.
License
This software carries a MIT license. See LICENSE.txt for details.
.
..: Copyright (c) 2013 - 2018 Mikael Roos, mos@dbwebb.se