use SQL::Translator::Generator::Utils;
use SQL::Translator::Schema::Constants;
+with 'SQL::Translator::Generator::Role::Quote';
with 'SQL::Translator::Generator::Role::DDL';
-sub _build_shim { SQL::Translator::Generator::Utils->new( quote_chars => [qw( [ ] )] ) }
+sub quote_chars { [qw([ ])] }
+sub name_sep { q(.) }
sub _build_numeric_types {
+{
use Moo;
use SQL::Translator::Generator::Utils;
+with 'SQL::Translator::Generator::Role::Quote';
with 'SQL::Translator::Generator::Role::DDL';
-sub _build_shim { SQL::Translator::Generator::Utils->new( quote_chars => q(") ) }
+sub quote_chars { [qw(" ")] }
+sub name_sep { q(.) }
sub _build_type_map {
+{
use Moo::Role;
use SQL::Translator::Utils qw(header_comment);
-requires '_build_shim';
requires '_build_type_map';
requires '_build_numeric_types';
requires '_build_unquoted_defaults';
requires 'field_type_size';
-
-has shim => (
- is => 'ro',
- handles => [ 'quote' ],
- builder => '_build_shim',
-);
+requires 'quote';
has type_map => (
is => 'ro',