Ignore:
Timestamp:
2018-10-25T20:12:42+13:00 (6 years ago)
Author:
ak19
Message:

Using proper parameters to GreenstoneSQLPlugin/Plugout instead of hardcoded values for params.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/gssql.pm

    r32538 r32541  
    106106# TODO: Consider AutoCommit status (and Autocommit off allowing commit or rollback for GS coll build cancel) later
    107107
     108# TODO: where should the defaults for these params be, here or in GS-SQLPlugin/Plugout?
    108109sub connect_to_db {
    109110    my $self= shift (@_);
     
    210211# This will terminate if the db does not exist. Unlike load_db_and_tables() above, used by
    211212# GreenstoneSQLPlugout, this method will not attempt to create the requested db (nor its tables)
     213# TODO: GS SQLPlugin is called before GS SQLPlugout and attempts to use_db() - called in plugin's
     214# init() method. This will fail if the db does not exist. Ideally want our plugin only called
     215# during buildcol.pl
    212216sub use_db {
    213217    my $self= shift (@_);
     
    294298
    295299# Don't call this: it will delete the meta and full text tables for ALL collections in $db_name (localsite by default)!
    296 # this is just for debugging
     300# This method is just here for debugging (for testing creating a database when there is none)
    297301sub _delete_database {
    298302    my $self= shift (@_);
     
    428432# see https://www.perlmonks.org/bare/?node=DBI%20Recipes
    429433#    The page further has a table_exists function that could work with proper comparison
    430 # Couldn't get the first solution at https://www.perlmonks.org/bare/?node_id=500050 to work though
     434# TODO: Couldn't get the first solution at https://www.perlmonks.org/bare/?node_id=500050 to work though
    431435sub table_exists {
    432436    my $self = shift (@_);
Note: See TracChangeset for help on using the changeset viewer.