nflate => DBIx::Class::InflateColumn::Serializer::JSON->get_unfreezer('rendered', {}),
deflate => DBIx::Class::InflateColumn::Serializer::JSON->get_freezer('rendered', {}),
},
);
__PACKAG
inflate => DBIx::Class::InflateColumn::Serializer::JSON->get_unfreezer('facets', {}),
deflate => DBIx::Class::InflateColumn::Serializer::JSON->get_freezer('facets', {}),
},
);
sub run {
= shift;
return App::Yath::Schema::ImportModes::event_in_mode(event => $self, @_);
}
sub TO_JSON {
my $self = shift;
my %cols = $self->get_all_fields;
return \%cols;
}
sub st_line_d
sig } sort { $a->job_try_ord <=> $b->job_try_ord } $self->jobs_tries;
$out //= ';';
}
sub TO_JSON {
my $self = shift;
my %cols = $self->get_all_fields;
$cols{short_file} = $self->
inflate => DBIx::Class::InflateColumn::Serializer::JSON->get_unfreezer('data', {}),
deflate => DBIx::Class::InflateColumn::Serializer::JSON->get_freezer('data', {}),
},
);
1;
__END__
=
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("job_tries");
__PACKAGE__->add_columns(
"job_try_uuid",
{ data_type =
lue => \"null",
is_nullable => 1,
size => [14, 4],
},
"parameters",
{ data_type => "jsonb", is_nullable => 1 },
"stdout",
{ data_type => "text", is_nullable => 1 },
"stderr",
{ d
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("session_hosts");
__PACKAGE__->add_columns(
"session_host_id",
{
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("config");
__PACKAGE__->add_columns(
"config_id",
{
data_type
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("events");
__PACKAGE__->add_columns(
"event_uuid",
{ data_type => "uu
ype => "boolean", is_nullable => 0 },
"facets",
{ data_type => "jsonb", is_nullable => 1 },
"rendered",
{ data_type => "jsonb", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("event_id");
:InflateColumn::Serializer::JSON->get_unfreezer('data', {}),
deflate => DBIx::Class::InflateColumn::Serializer::JSON->get_freezer('data', {}),
},
);
sub TO_JSON {
my $self = shift;
my %cols = $self->get_all_fields;
$cols{data} = decode_json($cols{data}) if $cols{data} && !ref($cols{data});
return \%cols;
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
App::Yath::Sc
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("sweeps");
__PACKAGE__->add_columns(
"sweep_id",
{
data_type
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("resources");
__PACKAGE__->add_columns(
"event_uuid",
{ data_type =>
},
"resource_ord",
{ data_type => "integer", is_nullable => 0 },
"data",
{ data_type => "jsonb", is_nullable => 0 },
);
__PACKAGE__->set_primary_key("resource_id");
__PACKAGE__->add_unique_co
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("primary_email");
__PACKAGE__->add_columns(
"user_id",
{ data_type =>
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("versions");
__PACKAGE__->add_columns(
"version_id",
{ data_type => "
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("coverage");
__PACKAGE__->add_columns(
"event_uuid",
{ data_type => "
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("coverage_manager");
__PACKAGE__->add_columns(
"coverage_manager_id",
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("jobs");
__PACKAGE__->add_columns(
"job_uuid",
{ data_type => "uuid",
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("resource_types");
__PACKAGE__->add_columns(
"resource_type_id",
{ da
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("sessions");
__PACKAGE__->add_columns(
"session_uuid",
{ data_type =>
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("projects");
__PACKAGE__->add_columns(
"project_id",
{ data_type => "
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("hosts");
__PACKAGE__->add_columns(
"host_id",
{ data_type => "bigint
onents(
"InflateColumn::DateTime",
"InflateColumn::Serializer",
"InflateColumn::Serializer::JSON",
);
__PACKAGE__->table("runs");
__PACKAGE__->add_columns(
"run_uuid",
{ data_type => "uuid",