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.
The following classes, interfaces and traits exists.
Class, interface, trait | Description |
---|---|
Anax\Database\ActiveRecordModel |
An Active Record implementation using the Anax Database Query Builder. |
All exceptions are in the namespace Anax\DatabaseActiveRecord\Exception\
. The following exceptions exists and may be thrown.
Exception | Description |
---|---|
ActiveRecordException |
General module specific exception. |
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.
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.
This software carries a MIT license. See LICENSE.txt for details.
.
..: Copyright (c) 2013 - 2018 Mikael Roos, mos@dbwebb.se