Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 0.08.
Browse files Browse the repository at this point in the history
Changelog diff is:

diff --git a/Changes b/Changes
index 1af9b66..c41233e 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,8 @@ Revision history for Perl extension DBIx-EAV

 {{$NEXT}}

+0.08 2016-08-15T19:01:30Z
+
     [ NEW ]
     * Implemented custom Entity/ResultSet classes
       - set via entity_namespaces/resultset_namespaces
  • Loading branch information
Carlos Fernando Avila Gratz committed Aug 15, 2016
1 parent 46127c4 commit 4425a34
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Revision history for Perl extension DBIx-EAV

{{$NEXT}}

0.08 2016-08-15T19:01:30Z

[ NEW ]
* Implemented custom Entity/ResultSet classes
- set via entity_namespaces/resultset_namespaces
Expand Down
6 changes: 3 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Carlos Fernando Avila Gratz <cafe@kreato.com.br>"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v3.0.1, CPAN::Meta::Converter version 2.150001",
"generated_by" : "Minilla/v3.0.3, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
Expand Down Expand Up @@ -55,7 +55,7 @@
"test" : {
"requires" : {
"DBD::SQLite" : "1.50",
"Test::More" : "0.98",
"Test2::Suite" : "0",
"YAML" : "1.15"
}
}
Expand All @@ -72,5 +72,5 @@
"web" : "https://github.com/cafe01/dbix-eav"
}
},
"version" : "0.07"
"version" : "0.08"
}
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/cafe01/dbix-eav.svg?branch=master)](https://travis-ci.org/cafe01/dbix-eav)
[![Build Status](https://travis-ci.org/cafe01/dbix-eav.svg?branch=master)](https://travis-ci.org/cafe01/dbix-eav) [![Coverage Status](https://img.shields.io/coveralls/cafe01/dbix-eav/master.svg?style=flat)](https://coveralls.io/r/cafe01/dbix-eav?branch=master)
# NAME

DBIx::EAV - Entity-Attribute-Value data modeling (aka 'open schema') for Perl
Expand Down Expand Up @@ -108,7 +108,8 @@ DBIx::EAV - Entity-Attribute-Value data modeling (aka 'open schema') for Perl
# DESCRIPTION

An implementation of Entity-Attribute-Value data modeling with support for
entity relationships and multi-tenancy. See [DBIx::EAV::Manual](https://metacpan.org/pod/DBIx::EAV::Manual).
entity relationships, inheritance, custom classes and multi-tenancy.
See [DBIx::EAV::Manual](https://metacpan.org/pod/DBIx::EAV::Manual).

# ALPHA STAGE

Expand All @@ -134,6 +135,30 @@ Valid `%params` keys:
Hashref of options used to instantiate our [DBIx::EAV::Schema](https://metacpan.org/pod/DBIx::EAV::Schema).
See ["CONSTRUCTOR OPTIONS" in DBIx::EAV::Schema](https://metacpan.org/pod/DBIx::EAV::Schema#CONSTRUCTOR-OPTIONS).

- entity\_namespaces

Arrayref of namespaces to look for custom [entity](https://metacpan.org/pod/DBIx::EAV::Entity) classes.

# mimic DBIx::Class
entity_namespaces => ['MyApp::Schema::Result']

Class names are created by appending the entity type name to each namespace in
the list. The first existing class is used.

Custom entity classes are useful not only provide custom business logic, but
also to define your entities, like DBIx::Class result classes.
See ["CUSTOM CLASS" in DBIx::EAV::Entity](https://metacpan.org/pod/DBIx::EAV::Entity#CUSTOM-CLASS).

- resultset\_namespaces

Arrayref of namespaces to look for custom resultset classes.

# mimic DBIx::Class
resultset_namespaces => ['MyApp::Schema::ResultSet']

Class names are created by appending the entity type name to each namespace in
the list. The first existing class is used.

## connect

- Arguments: $dsn, $user, $pass, $attrs, \\%constructor\_params
Expand Down
2 changes: 1 addition & 1 deletion lib/DBIx/EAV.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use Scalar::Util 'blessed';
use Class::Load qw' try_load_class ';
use namespace::clean;

our $VERSION = "0.07";
our $VERSION = "0.08";

# required
has 'dbh', is => 'ro', required => 1;
Expand Down

0 comments on commit 4425a34

Please sign in to comment.