
|
If you were logged in you would be able to see more operations.
|
|
|
Moodle
MDL-14679
Created: 20/May/08 05:59 AM
Updated: 26/May/08 03:57 AM
|
|
| Component/s: |
Database SQL/XMLDB
|
| Affects Version/s: |
2.0
|
| Fix Version/s: |
2.0
|
|
|
some times it could be desirable to close DB connections and reopen them again. In order to achieve this moodle_database objects should implement one disconnect() method, simply closing the connection (but leaving the moodle_database object created).
Also, perhaps some is_connected() or so should be able to return true/false and all moodle_database functions handling DB info should start with one:
if (!is_connected) {
return false;
}
Ciao :-)
|
|
Description
|
some times it could be desirable to close DB connections and reopen them again. In order to achieve this moodle_database objects should implement one disconnect() method, simply closing the connection (but leaving the moodle_database object created).
Also, perhaps some is_connected() or so should be able to return true/false and all moodle_database functions handling DB info should start with one:
if (!is_connected) {
return false;
}
Ciao :-) |
Show » |
|
it is not possible to reconnect, it is documented in the inline docs of dispose() method
please reopen if needed