| 1 | package DBIx::Class::Helper::Schema::QuoteNames; | ||
| 2 | 54 | $DBIx::Class::Helper::Schema::QuoteNames::VERSION = '2.033001'; | |
| 3 | # ABSTRACT: force C<quote_names> on | ||
| 4 | |||
| 5 | 54 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 54 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 54 | ▶ | use parent 'DBIx::Class::Schema'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 54 | ▶ | use DBIx::Class::Helpers::Util 'normalize_connect_info'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | sub connection { | ||
| 13 | 56 | ▶ | my $self = shift; |
|
Subroutine
connection: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | 56 | my $args = normalize_connect_info(@_); | |
| 16 | 56 | $args->{quote_names} = 1; | |
| 17 | |||
| 18 | 56 | $self->next::method($args) | |
| 19 | } | ||
| 20 | |||
| 21 | 54 | 1; | |
| 22 | |||
| 23 | __END__ | ||
| 24 | |||
| 25 | =pod | ||
| 26 | |||
| 27 | =head1 NAME | ||
| 28 | |||
| 29 | DBIx::Class::Helper::Schema::QuoteNames - force C<quote_names> on | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | package MyApp::Schema; | ||
| 34 | |||
| 35 | __PACKAGE__->load_components('Helper::Schema::QuoteNames'); | ||
| 36 | |||
| 37 | =head1 DESCRIPTION | ||
| 38 | |||
| 39 | This helper merely forces C<quote_names> on, no matter how your settings are | ||
| 40 | configured. You should use it. | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> | ||
| 45 | |||
| 46 | =head1 COPYRIGHT AND LICENSE | ||
| 47 | |||
| 48 | This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt. | ||
| 49 | |||
| 50 | This is free software; you can redistribute it and/or modify it under | ||
| 51 | the same terms as the Perl 5 programming language system itself. | ||
| 52 | |||
| 53 | =cut | ||