Lines 473-487
sub set_languages_syspref {
Link Here
|
473 |
C4::Context->clear_syspref_cache(); |
473 |
C4::Context->clear_syspref_cache(); |
474 |
} |
474 |
} |
475 |
|
475 |
|
476 |
=head2 load_sql |
476 |
=head2 process_yml_table |
477 |
|
|
|
478 |
my $error = $installer->load_sql($filename); |
479 |
|
477 |
|
480 |
Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader |
478 |
my $query_info = $installer->process_yml_table($table); |
481 |
Returns any strings sent to STDERR |
|
|
482 |
|
479 |
|
483 |
# FIXME This should be improved: sometimes the caller and load_sql warn the same |
480 |
Analyzes a table loaded in YAML format. |
484 |
error. |
481 |
Returns the values required to build an insert statement. |
485 |
|
482 |
|
486 |
=cut |
483 |
=cut |
487 |
|
484 |
|
Lines 506-511
sub process_yml_table {
Link Here
|
506 |
return { query => $query, placeholders => $placeholders, values => \@values }; |
503 |
return { query => $query, placeholders => $placeholders, values => \@values }; |
507 |
} |
504 |
} |
508 |
|
505 |
|
|
|
506 |
=head2 load_sql |
507 |
|
508 |
my $error = $installer->load_sql($filename); |
509 |
|
510 |
Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader |
511 |
Returns any strings sent to STDERR |
512 |
|
513 |
# FIXME This should be improved: sometimes the caller and load_sql warn the same |
514 |
error. |
515 |
|
516 |
=cut |
517 |
|
509 |
sub load_sql { |
518 |
sub load_sql { |
510 |
my $self = shift; |
519 |
my $self = shift; |
511 |
my $filename = shift; |
520 |
my $filename = shift; |