| 1 | package DBIO::PostgreSQL::Test::EventTZPg; | ||
| 2 | # ABSTRACT: Test result class for PostgreSQL timezone-aware datetime inflation | ||
| 3 | |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->load_components(qw/InflateColumn::DateTime/); | |
| 10 | |||
| 11 | 1 | __PACKAGE__->table('event'); | |
| 12 | |||
| 13 | 1 | __PACKAGE__->add_columns( | |
| 14 | id => { data_type => 'integer', is_auto_increment => 1 }, | ||
| 15 | |||
| 16 | starts_at => { data_type => 'date', datetime_undef_if_invalid => 1 }, | ||
| 17 | |||
| 18 | created_on => { | ||
| 19 | data_type => 'timestamp with time zone', | ||
| 20 | timezone => 'America/Chicago', | ||
| 21 | }, | ||
| 22 | varchar_date => { data_type => 'varchar', size => 20, is_nullable => 1 }, | ||
| 23 | varchar_datetime => { data_type => 'varchar', size => 20, is_nullable => 1 }, | ||
| 24 | skip_inflation => { data_type => 'datetime', inflate_datetime => 0, is_nullable => 1 }, | ||
| 25 | ts_without_tz => { data_type => 'timestamp without time zone', is_nullable => 1 }, | ||
| 26 | ); | ||
| 27 | |||
| 28 | 1 | __PACKAGE__->set_primary_key('id'); | |
| 29 | |||
| 30 | 1 | 1; | |
| 31 | |||
| 32 | __END__ | ||
| 33 | |||
| 34 | =pod | ||
| 35 | |||
| 36 | =encoding UTF-8 | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | DBIO::PostgreSQL::Test::EventTZPg - Test result class for PostgreSQL timezone-aware datetime inflation | ||
| 41 | |||
| 42 | =head1 VERSION | ||
| 43 | |||
| 44 | version 0.900001 | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | DBIO & DBIx::Class Authors | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | Copyright (C) 2026 DBIO Authors | ||
| 53 | Portions Copyright (C) 2005-2025 DBIx::Class Authors | ||
| 54 | Based on DBIx::Class, heavily modified. | ||
| 55 | |||
| 56 | This is free software; you can redistribute it and/or modify it under | ||
| 57 | the same terms as the Perl 5 programming language system itself. | ||
| 58 | |||
| 59 | =cut | ||