[Catalyst] How to save timestamps using DBIx::CLASS?

Kieren Diment kieren at diment.org
Tue Mar 3 02:49:24 GMT 2009


On 03/03/2009, at 1:43 PM, kakimoto at tpg.com.au wrote:

>
> hello, everybody (simpsons doctor tone),
>
>   How to save timestamps using DBIx::CLASS in a Catalyst app?
>

http://search.cpan.org/dist/DBIx-Class-TimeStamp/

also http://search.cpan.org/perldoc?DBIx::Class::InflateColumn::DateTime

further details in here:

http://search.cpan.org/perldoc?DBIx::Class::Tutorial::Part3


> For example, assume there is a database table named "Subscriptions"
> which has the following definitions:
>
> id (primary key),
> name,
> type,
> costs,
> activation_status,
> created_by,
> created_on,
> updated_by,
> updated_on.
>
> * Using DBIx::Class, how do we set timestamps as in the values for the
> attributes, created_on and updated_on?
>
>
>
> Thank you
>
> K. akimoto
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list