anax/database-active-record

Anax Database Active Record module for model classes.

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

This package is auto-updated.

Last update: 2024-10-12 02:24:30 UTC


README

Latest Stable Version Join the chat at https://gitter.im/canax/database-active-record

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.

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