DateTime');
_settings_for_package($pkg)->{inflate_datetime}= 1;
}
sub enable_inflate_json :Export(-inflate_json) {
my $self= shift;
$self->_inherit_dbic;
my $pkg= $self->{into};
$pkg->load_compo
');
my $settings= _settings_for_package($pkg);
$settings->{inflate_json}= 1;
$settings->{json_defaults}{serializer_class}= 'JSON';
}
sub enable_retrieve_defaults :Export(-retrieve_defaults) {
my
t mediumtext longtext ntext bytea
date datetime timestamp enum bool boolean
uuid json jsonb inflate_json array
primary_key idx create_index unique sqlt_add_index sqlt_add_constraint
rel_on
ar for inflate_json if the serializer class is JSON, but not if the package feature inflate_json
# was enabled and the column type is flagged as json.
$stmt .= ' inflate_json' if 'JSON' eq ($col_inf
the need to have it in $col_info.
# This happens with implied options like serializer_class => 'JSON'
for (keys %col_info) {
delete $col_info{$_} if exists $out->{$_};
}
# remove trailing c
zer_class => 'JSON' if inflate_json is enabled package-wide
delete $col_info->{serializer_class}
if $class_settings->{inflate_json} && ($col_info->{serializer_class}||'') eq 'JSON';
return $
t mediumtext longtext ntext bytea
date datetime timestamp enum bool boolean
uuid json jsonb inflate_json array
primary_key idx create_index unique sqlt_add_index sqlt_add_constraint
rel_on
]'
=head3 json, jsonb
json data_type => 'json'
json[] data_type => 'json[]'
jsonb data_type => 'jsonb'
jsonb[]
pe => 'jsonb[]'
If C<< -inflate_json >> use-line option was given, this will additionally imply
L</inflate_json>.
=head3 inflate_json
inflate_json serializer_class => 'JSON'
Thi
nvarchar binary varbinary blob text ntext
date datetime timestamp enum bool boolean
inflate_json
primary_key
rel_one rel_many has_one might_have has_many belongs_to many_to_many
ddl_cascade
te_type => 'timestamp'
time_zone => $timezone if defined $timezone
=item inflate_json
serializer_class => 'JSON'
Also adds the component 'InflateColumn::Serializer' to the current package if it