Hi,

>From time to time I'm hacking on tisql branch of JDBI and I have a
question for you. In the following list what does look more natural
and descriptive? I don't describe what this is as it should be self
descriptive. Vote for any you think is clearer and better.

1)

package TestApp::User;
...
use Jifty::DBI::Record schema {
...
    column attrs =>
        refers_to TestApp::AttributeCollection
            by tisql => " .record = __record__.id AND .model = 'User'";
...
};

2)

package TestApp::User;
...
use Jifty::DBI::Record schema {
...
    column attrs =>
        refers_to TestApp::AttributeCollection
            by tisql => "attrs.record = .id AND attrs.model = 'User'";
...
};

3)

package TestApp::User;
...
use Jifty::DBI::Record schema {
...
    column attrs =>
        refers_to TestApp::AttributeCollection
            by tisql => ".attrs.record = .id AND .attrs.model = 'User'";
...
};


-- 
Best regards, Ruslan.
_______________________________________________
jifty-devel mailing list
jifty-devel@lists.jifty.org
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

Reply via email to