Skip to content

canax/database-active-record

Repository files navigation

Anax Database Active Record

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.

Class, interface, trait Description
Anax\Database\ActiveRecordModel An Active Record implementation using the Anax Database Query Builder.

Exceptions

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.

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

About

Anax Database Active Record module to use as a model class for database access.

Resources

License

Stars

Watchers

Forks

Packages

No packages published