Changeset 32541 for main/trunk/greenstone2/perllib/gssql.pm
- Timestamp:
- 2018-10-25T20:12:42+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/gssql.pm
r32538 r32541 106 106 # TODO: Consider AutoCommit status (and Autocommit off allowing commit or rollback for GS coll build cancel) later 107 107 108 # TODO: where should the defaults for these params be, here or in GS-SQLPlugin/Plugout? 108 109 sub connect_to_db { 109 110 my $self= shift (@_); … … 210 211 # This will terminate if the db does not exist. Unlike load_db_and_tables() above, used by 211 212 # 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 212 216 sub use_db { 213 217 my $self= shift (@_); … … 294 298 295 299 # 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 debugging300 # This method is just here for debugging (for testing creating a database when there is none) 297 301 sub _delete_database { 298 302 my $self= shift (@_); … … 428 432 # see https://www.perlmonks.org/bare/?node=DBI%20Recipes 429 433 # 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 though434 # TODO: Couldn't get the first solution at https://www.perlmonks.org/bare/?node_id=500050 to work though 431 435 sub table_exists { 432 436 my $self = shift (@_);
Note:
See TracChangeset
for help on using the changeset viewer.