Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How do you check if the DB is unavailable?

    Hi,

    I would like to redirect to a page when the database is unavailable. Is this possible? What would the code look like for this? Currently it seems to error out within the framework when it tries to load the datasource files.

    #2
    DataSources that use autoDeriveSchema necessarily contact the DB during loading. A DataSource that doesn't use autoDeriveSchema won't contact the DB during loading, so you could execute a DSRequest against it to test if the DB is available.

    Comment

    Working...
    X