Anax Database Active Record module for model classes.

v2.0.4 2019-12-11 15:50 UTC

This package is auto-updated.

Last update: 2023-05-11 23:22:48 UTC


Latest Stable Version Join the chat at

Build Status CircleCI

Build Status Scrutinizer Code Quality Code Coverage

Maintainability Codacy Badge

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.

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.

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.


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,