Sam asked:
> are there any plans in Perl 6 for specifying
> OO <-> RDBMS mapping in the class { } construct? Another way to look at
> this would be adding arbitrary fine grained type constraints to
> attributes, and then tools can be written which examine these constraints
> and produce RDBMS schemas.
I would imagine that the combination of optional typing and the
ability to define handlers for arbitrary com[ile-time traits would
solve this problem:
class Demo;
use Attributes::RDBMS;
my NUM $.attr1 is key(primary) require(>0);
my STR $.attr is key;
# etc.
Damian