Mercurial > pub > Impl
annotate Lib/IMPL/ORM/Helpers.pm @ 31:d59526f6310e
Small fixes to Test framework (correct handlinf of the compilation errors in the test units)
Imported and refactored SQL DB schema from the old project
| author | Sergey |
|---|---|
| date | Mon, 09 Nov 2009 01:39:16 +0300 |
| parents | 6d33f75c6e1f |
| children | 16ada169ca75 |
| rev | line source |
|---|---|
| 28 | 1 package IMPL::ORM::Helpers; |
| 2 use strict; | |
| 3 use warnings; | |
| 4 | |
| 5 require Exporter; | |
| 6 our @ISA = qw(Exporter); | |
| 7 our @EXPORT_OK = qw(&Map &Box); | |
| 8 | |
| 9 sub Map($$) { | |
| 10 my ($TKey,$TValue) = @_; | |
| 11 | |
| 12 $TKey =~ s/:://g; | |
| 13 $TValue =~ s/:://g; | |
| 14 | |
| 15 return "IMPL::ORM::Map::${TKey}${TValue}"; | |
| 16 } | |
| 17 | |
| 18 sub Box($) { | |
| 19 my ($TValue) = @_; | |
| 20 $TValue =~ s/:://g; | |
| 21 return "IMPL::ORM::Box::$TValue"; | |
| 22 } | |
| 23 | |
| 24 1; |
