Lines 447-461
sub set_version_syspref {
Link Here
|
447 |
C4::Context->clear_syspref_cache(); |
447 |
C4::Context->clear_syspref_cache(); |
448 |
} |
448 |
} |
449 |
|
449 |
|
450 |
=head2 load_sql |
450 |
=head2 process_yml_table |
451 |
|
|
|
452 |
my $error = $installer->load_sql($filename); |
453 |
|
451 |
|
454 |
Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader |
452 |
my $query_info = $installer->process_yml_table($table); |
455 |
Returns any strings sent to STDERR |
|
|
456 |
|
453 |
|
457 |
# FIXME This should be improved: sometimes the caller and load_sql warn the same |
454 |
Analyzes a table loaded in YAML format. |
458 |
error. |
455 |
Returns the values required to build an insert statement. |
459 |
|
456 |
|
460 |
=cut |
457 |
=cut |
461 |
|
458 |
|
Lines 480-485
sub process_yml_table {
Link Here
|
480 |
return { query => $query, placeholders => $placeholders, values => \@values }; |
477 |
return { query => $query, placeholders => $placeholders, values => \@values }; |
481 |
} |
478 |
} |
482 |
|
479 |
|
|
|
480 |
=head2 load_sql |
481 |
|
482 |
my $error = $installer->load_sql($filename); |
483 |
|
484 |
Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader |
485 |
Returns any strings sent to STDERR |
486 |
|
487 |
# FIXME This should be improved: sometimes the caller and load_sql warn the same |
488 |
error. |
489 |
|
490 |
=cut |
491 |
|
483 |
sub load_sql { |
492 |
sub load_sql { |
484 |
my $self = shift; |
493 |
my $self = shift; |
485 |
my $filename = shift; |
494 |
my $filename = shift; |