Veil2 Functions and Triggers The following functions, defined in sql/veil2--&version_number;.sql, are for managing Referential Integrity: context_exists_chk(); These functions are for managing user-provided database objects (functions and views): function_definition(); replace_function(); restore_system_functions(); install_user_functions(); function_exists(); view_exists(); replace_view(); restore_system_views(); install_user_views(); init(); deferred_install_fn(). These functions are for authentication handling: authenticate_false(); authenticate_plaintext(); authenticate_bcrypt(); authenticate(). These functions are for session handling: session_ready(); reset_session(); reset_session_privs(); get_accessor(); new_session_context(); have_accessor_context(); create_accessor_session(); create_session(); check_nonce(); update_nonces(); filter_privs(); load_ancestor_privs(); filter_session_privs(); save_privs_as_orig(); all_accessor_roles(); base_accessor_roleprivs(); session_context(); session_privileges(); load_session_privs(); save_session_privs(); load_cached_privs(); update_session(); load_connection_privs(); reload_session_context(); reload_connection_privs(); check_continuation(); open_connection(); close_connection(); hello(); check_become_user_priv(); check_accessor_context(); become_accessor(); become_user(). These functions are for testing session privileges: always_true(); i_have_global_priv(); i_have_personal_priv(); i_have_priv_in_scope(); i_have_priv_in_scope_or_global(); i_have_priv_in_superior_scope(); i_have_priv_in_scope_or_superior(); i_have_priv_in_scope_orsuperior_or_global(). Utility and administration functions: result_counts(); delete_expired_sessions(); docpath(); datapath(); bcrypt(). Functions for refreshing materialized views: refresh_all_matviews(); refresh_scopes_matviews(); refresh_privs_matviews(); refresh_roles_matviews(); clear_accessor_privs_cache(); clear_accessor_privs_cache_entry(); Functions for checking the status of your Veil2 secured database implementation: have_user_scope_types(); have_user_privileges(); have_user_roles(); have_role_privileges(); have_role_roles(); have_accessors(); have_user_scopes(); check_table_security(); implementation_status(). Other trigger functions: system_parameters_check(); make_user_defined(). And these triggers exist: context_role__context_fk; role_role__context_fk; accessor_role__context_fk; scopes__aiudt; deferred_install_trg; system_parameters_biu; authentication_types_biu. Functions for managing Referential Integrity <literal>context_exists_chk()</literal> Functions for Management of User-Provided Database Objects <literal>function_definition()</literal> <literal>replace_function()</literal> <literal>restore_system_functions()</literal> <literal>install_user_functions()</literal> <literal>function_exists()</literal> <literal>view_exists()</literal> <literal>replace_view()</literal> <literal>restore_system_views()</literal> <literal>install_user_views()</literal> <literal>init()</literal> <literal>deferred_install_fn()</literal> Authentication Functions <literal>authenticate_false()</literal> <literal>authenticate_plaintext()</literal> <literal>authenticate_bcrypt()</literal> <literal>authenticate()</literal> Session Functions <literal>session_ready()</literal> The Doxygen documentation for this can be found . <literal>reset_session()</literal> The Doxygen documentation for this can be found . <literal>reset_session_privs()</literal> The Doxygen documentation for this can be found . <literal>get_accessor()</literal> <literal>new_session_context()</literal> <literal>have_accessor_context()</literal> <literal>create_accessor_session()</literal> <literal>create_session()</literal> <literal>check_nonce()</literal> <literal>update_nonces()</literal> <literal>filter_privs()</literal> <literal>load_ancestor_privs()</literal> <literal>filter_session_privs()</literal> <literal>save_privs_as_orig()</literal> <literal>all_accessor_roles()</literal> <literal>base_accessor_roleprivs()</literal> <literal>session_context()</literal> <literal>session_privileges()</literal> <literal>load_session_privs()</literal> <literal>save_session_privs()</literal> <literal>load_cached_privs()</literal> <literal>update_session()</literal> <literal>load_connection_privs()</literal> <literal>reload_session_context()</literal> <literal>reload_connection_privs()</literal> <literal>check_continuation()</literal> <literal>open_connection()</literal> <literal>close_connection()</literal> <literal>hello()</literal> <literal>check_become_user_priv()</literal> <literal>check_accessor_context()</literal> <literal>become_accessor()</literal> <literal>become_user()</literal> Privilege Testing Functions <literal>always_true()</literal> The Doxygen documentation for this can be found . <literal>i_have_global_priv()</literal> The Doxygen documentation for this can be found . <literal>i_have_personal_priv()</literal> The Doxygen documentation for this can be found . <literal>i_have_priv_in_scope()</literal> The Doxygen documentation for this can be found . <literal>i_have_priv_in_scope_or_global()</literal> The Doxygen documentation for this can be found . <literal>i_have_priv_in_superior_scope()</literal> The Doxygen documentation for this can be found . <literal>i_have_priv_in_scope_or_superior()</literal> The Doxygen documentation for this can be found . <literal>i_have_priv_in_scope_or_superior_or_global()</literal> The Doxygen documentation for this can be found . Utility and Administration Functions <literal>result_counts()</literal> The Doxygen documentation for this can be found . <literal>delete_expired_sessions()</literal> <literal>func_docpath()</literal> <literal>func_datapath()</literal> <literal>func_bcrypt()</literal> Materialized View Functions Refresh All Matviews Function Refresh Scopes Matviews Function Refresh Roles Matviews Function Refresh Privs Matviews Function Clear Accessor Privs Cache Function Clear Accessor Privs Cache Entry Function Functions For Checking Your Implementation <literal>func_have_user_scope_types()</literal> <literal>have_user_privileges()</literal> <literal>have_user_roles()</literal> <literal>have_role_privileges()</literal> <literal>have_role_roles()</literal> <literal>have_accessors()</literal> <literal>have_user_scopes()</literal> <literal>check_table_security()</literal> <literal>implementation_status()</literal> Other Trigger Functions <literal>system_parameters_check()</literal> <literal>make_user_defined()</literal> Built-in Triggers <literal>context_role__context_fk</literal> <literal>role_role__context_fk</literal> <literal>accessor_role__context_fk</literal> <literal>scopes__aiudt</literal> <literal>deferred_install_trg</literal> <literal>system_parameters_biu</literal> <literal>authentication_types_biu</literal>