1 package SL::DB::CustomDataExportQuery;
5 use SL::DB::MetaSetup::CustomDataExportQuery;
6 use SL::DB::Manager::CustomDataExportQuery;
8 __PACKAGE__->meta->add_relationship(
10 type => 'one to many',
11 class => 'SL::DB::CustomDataExportQueryParameter',
12 column_map => { id => 'query_id' },
16 __PACKAGE__->meta->initialize;
18 sub used_parameter_names {
23 my $sql_query = $self->sql_query // '';
24 $parameters{$1} = 1 while $sql_query =~ m{<\%(.+?)\%>}g;
26 return sort keys %parameters;