\DataViewBuilder
Synopsis
class DataViewBuilder
extends SS_Object
{
- // members
- private static boolean $update_views_on_dev_build = true;
- // methods
- public static void BuildOrDropAllViews()
- public static void BuildView()
- public static void DropView()
- public static void BuildOrDropView()
- private static string view_statement_as_string()
Hierarchy
Extends
- SS_Object
Members
private
- $update_views_on_dev_build
Methods
private
public
- BuildOrDropAllViews()
- BuildOrDropView() — Checks whether the view is obsolete. If not, creates or updates it in the database. If it is obsolete, drops it from the database.
- BuildView() — Creates the view in the database, or replaces it with a new one if it exists already. This should be run every time you make changes to any database tables, because even if the statement of the view is not changed, MySQL needs to update the view's column references if any columns are added/removed to/from normal database tables.
- DropView()