Changeset 32543 for main/trunk/greenstone2/perllib/gssql.pm
- Timestamp:
- 2018-10-26T15:10:47+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/gssql.pm
r32541 r32543 212 212 # GreenstoneSQLPlugout, this method will not attempt to create the requested db (nor its tables) 213 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 ourplugin only called214 # init() method. This will fail if the db does not exist. Ideally want the gssqlplugin only called 215 215 # during buildcol.pl 216 216 sub use_db { … … 282 282 283 283 # "IF EXISTS is used to prevent an error from occurring if the database does not exist. ... DROP DATABASE returns the number of tables that were removed. The DROP DATABASE statement removes from the given database directory those files and directories that MySQL itself may create during normal operation.Jun 20, 2012" 284 # MySQL 8.0 Reference Manual :: 13.1.22 DROP DATABASE Syntax284 # MySQL 8.0 Reference Manual :: 13.1.22 DROP DATABASE Syntax 285 285 # https://dev.mysql.com/doc/en/drop-database.html 286 286 sub delete_collection_tables { … … 432 432 # see https://www.perlmonks.org/bare/?node=DBI%20Recipes 433 433 # The page further has a table_exists function that could work with proper comparison 434 # TODO : Couldn't get the first solution at https://www.perlmonks.org/bare/?node_id=500050 to work though434 # TODO Q: Couldn't get the first solution at https://www.perlmonks.org/bare/?node_id=500050 to work though 435 435 sub table_exists { 436 436 my $self = shift (@_);
Note:
See TracChangeset
for help on using the changeset viewer.