Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP DB code: clean up the logic, and allow for > 1 readonly replica #5697

Merged
merged 4 commits into from
Aug 31, 2024

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    9caf7d8 View commit details
    Browse the repository at this point in the history
  2. PHP DB API: db_host defaults (explicitly) to localhost.

    Remove the 'use $db_name' query; don't need that with mysqli
    davidpanderson committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    2638531 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. A couple of additions to the BoincDb class:

    - a close() method, closes the connection
    - a $dbnum member: which replica you're connected to (0 if main DB)
    
    Also, BoincDb doesn't inherit DbConn.
    davidpanderson committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    4b4ba9d View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. BoincDb::get():

    if open to different dbnum, close and reconnect.
    Don't throw exception if connect fails
    davidpanderson committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    da1727c View commit details
    Browse the repository at this point in the history