From: Kevin Day Date: Sun, 9 Dec 2018 01:06:10 +0000 (-0600) Subject: Progress: continue development on database abstraction X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=bf98ce56fb77edbbf3a933abbc9da341fe05f457;p=koopa Progress: continue development on database abstraction --- diff --git a/common/database/classes/database_alter_domain.php b/common/database/classes/database_alter_domain.php index 17e185a..da1cf4a 100644 --- a/common/database/classes/database_alter_domain.php +++ b/common/database/classes/database_alter_domain.php @@ -22,8 +22,6 @@ require_once('common/database/traits/database_action.php'); /** * The class for building and returning a Postgresql ALTER DOMAIN query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alterdomain.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_event_trigger.php b/common/database/classes/database_alter_event_trigger.php index deb861c..8588d41 100644 --- a/common/database/classes/database_alter_event_trigger.php +++ b/common/database/classes/database_alter_event_trigger.php @@ -18,8 +18,6 @@ require_once('common/database/traits/database_rename_to.php'); /** * The class for building and returning a Postgresql ALTER EVENT TRIGGER query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-altereventtrigger.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_extension.php b/common/database/classes/database_alter_extension.php index 03f00bf..cdbb304 100644 --- a/common/database/classes/database_alter_extension.php +++ b/common/database/classes/database_alter_extension.php @@ -18,8 +18,6 @@ require_once('common/database/traits/database_name.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alterextension.html */ class c_database_alter_extension extends c_database_query { diff --git a/common/database/classes/database_alter_function.php b/common/database/classes/database_alter_function.php index 53a9c39..c2bf9b8 100644 --- a/common/database/classes/database_alter_function.php +++ b/common/database/classes/database_alter_function.php @@ -20,11 +20,9 @@ require_once('common/database/traits/database_restrict.php'); require_once('common/database/traits/database_set_schema.php'); /** - * The class for building and returning a Postgresql ALTER COALATION query string. + * The class for building and returning a Postgresql ALTER FUNCTION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * - * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html + * @see: https://www.postgresql.org/docs/current/static/sql-alterfunction.html */ class c_database_alter_coalation extends c_database_query { use t_database_argument_type; diff --git a/common/database/classes/database_alter_group.php b/common/database/classes/database_alter_group.php index bc3389e..e5926c7 100644 --- a/common/database/classes/database_alter_group.php +++ b/common/database/classes/database_alter_group.php @@ -1,7 +1,7 @@ add_user = NULL; + $this->role_specification = NULL; } /** * Class destructor. */ public function __destruct() { + unset($this->add_user); + unset($this->role_specification); + parent::__destruct(); } @@ -61,9 +70,21 @@ class c_database_alter_coalation extends c_database_query { * Implements do_build(). */ public function do_build() { - $this->value = NULL; + if (!is_string($this->name)) { + return new c_base_return_false(); + } + + if ((is_int($this->role_specification) || is_string($this->role_specification)) && is_array($this->add_user)) { + $value = $this->p_do_build_role_specification(); + $value = ' ' . $this->p_do_build_add_user(); + } + else { + return new c_base_return_false(); + } - // @todo + $this->value = static::p_QUERY_COMMAND; + $this->value .= ' ' . $value; + unset($value); return new c_base_return_true(); } diff --git a/common/database/classes/database_alter_index.php b/common/database/classes/database_alter_index.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_index.php +++ b/common/database/classes/database_alter_index.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_language.php b/common/database/classes/database_alter_language.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_language.php +++ b/common/database/classes/database_alter_language.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_large_object.php b/common/database/classes/database_alter_large_object.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_large_object.php +++ b/common/database/classes/database_alter_large_object.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_materialized_view.php b/common/database/classes/database_alter_materialized_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_materialized_view.php +++ b/common/database/classes/database_alter_materialized_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_operator.php b/common/database/classes/database_alter_operator.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_operator.php +++ b/common/database/classes/database_alter_operator.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_operator_class.php b/common/database/classes/database_alter_operator_class.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_operator_class.php +++ b/common/database/classes/database_alter_operator_class.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_operator_family.php b/common/database/classes/database_alter_operator_family.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_operator_family.php +++ b/common/database/classes/database_alter_operator_family.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_policy.php b/common/database/classes/database_alter_policy.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_policy.php +++ b/common/database/classes/database_alter_policy.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_publication.php b/common/database/classes/database_alter_publication.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_publication.php +++ b/common/database/classes/database_alter_publication.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_role.php b/common/database/classes/database_alter_role.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_role.php +++ b/common/database/classes/database_alter_role.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_rule.php b/common/database/classes/database_alter_rule.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_rule.php +++ b/common/database/classes/database_alter_rule.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_schema.php b/common/database/classes/database_alter_schema.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_schema.php +++ b/common/database/classes/database_alter_schema.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_table.php b/common/database/classes/database_alter_table.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_table.php +++ b/common/database/classes/database_alter_table.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_tablespace.php b/common/database/classes/database_alter_tablespace.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_tablespace.php +++ b/common/database/classes/database_alter_tablespace.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_text_search_configuration.php b/common/database/classes/database_alter_text_search_configuration.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_text_search_configuration.php +++ b/common/database/classes/database_alter_text_search_configuration.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_text_search_dictionary.php b/common/database/classes/database_alter_text_search_dictionary.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_text_search_dictionary.php +++ b/common/database/classes/database_alter_text_search_dictionary.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_text_search_parser.php b/common/database/classes/database_alter_text_search_parser.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_text_search_parser.php +++ b/common/database/classes/database_alter_text_search_parser.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_text_search_template.php b/common/database/classes/database_alter_text_search_template.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_text_search_template.php +++ b/common/database/classes/database_alter_text_search_template.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_trigger.php b/common/database/classes/database_alter_trigger.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_trigger.php +++ b/common/database/classes/database_alter_trigger.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_type.php b/common/database/classes/database_alter_type.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_type.php +++ b/common/database/classes/database_alter_type.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_user.php b/common/database/classes/database_alter_user.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_user.php +++ b/common/database/classes/database_alter_user.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_user_mapping.php b/common/database/classes/database_alter_user_mapping.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_user_mapping.php +++ b/common/database/classes/database_alter_user_mapping.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_alter_view.php b/common/database/classes/database_alter_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_alter_view.php +++ b/common/database/classes/database_alter_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_analyze.php b/common/database/classes/database_analyze.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_analyze.php +++ b/common/database/classes/database_analyze.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_begin.php b/common/database/classes/database_begin.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_begin.php +++ b/common/database/classes/database_begin.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_checkpoint.php b/common/database/classes/database_checkpoint.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_checkpoint.php +++ b/common/database/classes/database_checkpoint.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_close.php b/common/database/classes/database_close.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_close.php +++ b/common/database/classes/database_close.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_cluster.php b/common/database/classes/database_cluster.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_cluster.php +++ b/common/database/classes/database_cluster.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_comment.php b/common/database/classes/database_comment.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_comment.php +++ b/common/database/classes/database_comment.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_commit.php b/common/database/classes/database_commit.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_commit.php +++ b/common/database/classes/database_commit.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_commit_prepared.php b/common/database/classes/database_commit_prepared.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_commit_prepared.php +++ b/common/database/classes/database_commit_prepared.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_copy.php b/common/database/classes/database_copy.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_copy.php +++ b/common/database/classes/database_copy.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_access_method.php b/common/database/classes/database_create_access_method.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_access_method.php +++ b/common/database/classes/database_create_access_method.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_aggregate.php b/common/database/classes/database_create_aggregate.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_aggregate.php +++ b/common/database/classes/database_create_aggregate.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_cast.php b/common/database/classes/database_create_cast.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_cast.php +++ b/common/database/classes/database_create_cast.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_collation.php b/common/database/classes/database_create_collation.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_collation.php +++ b/common/database/classes/database_create_collation.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_conversion.php b/common/database/classes/database_create_conversion.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_conversion.php +++ b/common/database/classes/database_create_conversion.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_database.php b/common/database/classes/database_create_database.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_database.php +++ b/common/database/classes/database_create_database.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_domain.php b/common/database/classes/database_create_domain.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_domain.php +++ b/common/database/classes/database_create_domain.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_event_trigger.php b/common/database/classes/database_create_event_trigger.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_event_trigger.php +++ b/common/database/classes/database_create_event_trigger.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_extension.php b/common/database/classes/database_create_extension.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_extension.php +++ b/common/database/classes/database_create_extension.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_foreign.php b/common/database/classes/database_create_foreign.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_foreign.php +++ b/common/database/classes/database_create_foreign.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_foreign_data_wrapper.php b/common/database/classes/database_create_foreign_data_wrapper.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_foreign_data_wrapper.php +++ b/common/database/classes/database_create_foreign_data_wrapper.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_function.php b/common/database/classes/database_create_function.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_function.php +++ b/common/database/classes/database_create_function.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_group.php b/common/database/classes/database_create_group.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_group.php +++ b/common/database/classes/database_create_group.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_index.php b/common/database/classes/database_create_index.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_index.php +++ b/common/database/classes/database_create_index.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_language.php b/common/database/classes/database_create_language.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_language.php +++ b/common/database/classes/database_create_language.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_materialized_view.php b/common/database/classes/database_create_materialized_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_materialized_view.php +++ b/common/database/classes/database_create_materialized_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_operator.php b/common/database/classes/database_create_operator.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_operator.php +++ b/common/database/classes/database_create_operator.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_operator_class.php b/common/database/classes/database_create_operator_class.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_operator_class.php +++ b/common/database/classes/database_create_operator_class.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_operator_family.php b/common/database/classes/database_create_operator_family.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_operator_family.php +++ b/common/database/classes/database_create_operator_family.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_policy.php b/common/database/classes/database_create_policy.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_policy.php +++ b/common/database/classes/database_create_policy.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_publication.php b/common/database/classes/database_create_publication.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_publication.php +++ b/common/database/classes/database_create_publication.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_role.php b/common/database/classes/database_create_role.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_role.php +++ b/common/database/classes/database_create_role.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_rule.php b/common/database/classes/database_create_rule.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_rule.php +++ b/common/database/classes/database_create_rule.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_schema.php b/common/database/classes/database_create_schema.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_schema.php +++ b/common/database/classes/database_create_schema.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_sequence.php b/common/database/classes/database_create_sequence.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_sequence.php +++ b/common/database/classes/database_create_sequence.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_server.php b/common/database/classes/database_create_server.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_server.php +++ b/common/database/classes/database_create_server.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_statistics.php b/common/database/classes/database_create_statistics.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_statistics.php +++ b/common/database/classes/database_create_statistics.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_subscription.php b/common/database/classes/database_create_subscription.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_subscription.php +++ b/common/database/classes/database_create_subscription.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_table.php b/common/database/classes/database_create_table.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_table.php +++ b/common/database/classes/database_create_table.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_table_as.php b/common/database/classes/database_create_table_as.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_table_as.php +++ b/common/database/classes/database_create_table_as.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_tablespace.php b/common/database/classes/database_create_tablespace.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_tablespace.php +++ b/common/database/classes/database_create_tablespace.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_text_search_configuration.php b/common/database/classes/database_create_text_search_configuration.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_text_search_configuration.php +++ b/common/database/classes/database_create_text_search_configuration.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_text_search_dictionary.php b/common/database/classes/database_create_text_search_dictionary.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_text_search_dictionary.php +++ b/common/database/classes/database_create_text_search_dictionary.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_text_search_parser.php b/common/database/classes/database_create_text_search_parser.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_text_search_parser.php +++ b/common/database/classes/database_create_text_search_parser.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_text_search_template.php b/common/database/classes/database_create_text_search_template.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_text_search_template.php +++ b/common/database/classes/database_create_text_search_template.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_transform.php b/common/database/classes/database_create_transform.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_transform.php +++ b/common/database/classes/database_create_transform.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_trigger.php b/common/database/classes/database_create_trigger.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_trigger.php +++ b/common/database/classes/database_create_trigger.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_type.php b/common/database/classes/database_create_type.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_type.php +++ b/common/database/classes/database_create_type.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_user.php b/common/database/classes/database_create_user.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_user.php +++ b/common/database/classes/database_create_user.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_user_mapping.php b/common/database/classes/database_create_user_mapping.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_user_mapping.php +++ b/common/database/classes/database_create_user_mapping.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_create_view.php b/common/database/classes/database_create_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_create_view.php +++ b/common/database/classes/database_create_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_deallocate.php b/common/database/classes/database_deallocate.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_deallocate.php +++ b/common/database/classes/database_deallocate.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_declare.php b/common/database/classes/database_declare.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_declare.php +++ b/common/database/classes/database_declare.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_delete.php b/common/database/classes/database_delete.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_delete.php +++ b/common/database/classes/database_delete.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_discard.php b/common/database/classes/database_discard.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_discard.php +++ b/common/database/classes/database_discard.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_do.php b/common/database/classes/database_do.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_do.php +++ b/common/database/classes/database_do.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_access_method.php b/common/database/classes/database_drop_access_method.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_access_method.php +++ b/common/database/classes/database_drop_access_method.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_aggregate.php b/common/database/classes/database_drop_aggregate.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_aggregate.php +++ b/common/database/classes/database_drop_aggregate.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_cast.php b/common/database/classes/database_drop_cast.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_cast.php +++ b/common/database/classes/database_drop_cast.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_collation.php b/common/database/classes/database_drop_collation.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_collation.php +++ b/common/database/classes/database_drop_collation.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_conversion.php b/common/database/classes/database_drop_conversion.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_conversion.php +++ b/common/database/classes/database_drop_conversion.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_database.php b/common/database/classes/database_drop_database.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_database.php +++ b/common/database/classes/database_drop_database.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_domain.php b/common/database/classes/database_drop_domain.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_domain.php +++ b/common/database/classes/database_drop_domain.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_event_trigger.php b/common/database/classes/database_drop_event_trigger.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_event_trigger.php +++ b/common/database/classes/database_drop_event_trigger.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_extension.php b/common/database/classes/database_drop_extension.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_extension.php +++ b/common/database/classes/database_drop_extension.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_foreign_data_wrapper.php b/common/database/classes/database_drop_foreign_data_wrapper.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_foreign_data_wrapper.php +++ b/common/database/classes/database_drop_foreign_data_wrapper.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_foreign_table.php b/common/database/classes/database_drop_foreign_table.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_foreign_table.php +++ b/common/database/classes/database_drop_foreign_table.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_function.php b/common/database/classes/database_drop_function.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_function.php +++ b/common/database/classes/database_drop_function.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_group.php b/common/database/classes/database_drop_group.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_group.php +++ b/common/database/classes/database_drop_group.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_index.php b/common/database/classes/database_drop_index.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_index.php +++ b/common/database/classes/database_drop_index.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_language.php b/common/database/classes/database_drop_language.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_language.php +++ b/common/database/classes/database_drop_language.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_materialized_view.php b/common/database/classes/database_drop_materialized_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_materialized_view.php +++ b/common/database/classes/database_drop_materialized_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_operator.php b/common/database/classes/database_drop_operator.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_operator.php +++ b/common/database/classes/database_drop_operator.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_operator_class.php b/common/database/classes/database_drop_operator_class.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_operator_class.php +++ b/common/database/classes/database_drop_operator_class.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_operator_family.php b/common/database/classes/database_drop_operator_family.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_operator_family.php +++ b/common/database/classes/database_drop_operator_family.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_owned.php b/common/database/classes/database_drop_owned.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_owned.php +++ b/common/database/classes/database_drop_owned.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_policy.php b/common/database/classes/database_drop_policy.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_policy.php +++ b/common/database/classes/database_drop_policy.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_publication.php b/common/database/classes/database_drop_publication.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_publication.php +++ b/common/database/classes/database_drop_publication.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_role.php b/common/database/classes/database_drop_role.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_role.php +++ b/common/database/classes/database_drop_role.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_rule.php b/common/database/classes/database_drop_rule.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_rule.php +++ b/common/database/classes/database_drop_rule.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_schema.php b/common/database/classes/database_drop_schema.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_schema.php +++ b/common/database/classes/database_drop_schema.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_sequence.php b/common/database/classes/database_drop_sequence.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_sequence.php +++ b/common/database/classes/database_drop_sequence.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_server.php b/common/database/classes/database_drop_server.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_server.php +++ b/common/database/classes/database_drop_server.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_statistics.php b/common/database/classes/database_drop_statistics.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_statistics.php +++ b/common/database/classes/database_drop_statistics.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_subscription.php b/common/database/classes/database_drop_subscription.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_subscription.php +++ b/common/database/classes/database_drop_subscription.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_table.php b/common/database/classes/database_drop_table.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_table.php +++ b/common/database/classes/database_drop_table.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_tablespace.php b/common/database/classes/database_drop_tablespace.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_tablespace.php +++ b/common/database/classes/database_drop_tablespace.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_text_search_configuration.php b/common/database/classes/database_drop_text_search_configuration.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_text_search_configuration.php +++ b/common/database/classes/database_drop_text_search_configuration.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_text_search_dictionary.php b/common/database/classes/database_drop_text_search_dictionary.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_text_search_dictionary.php +++ b/common/database/classes/database_drop_text_search_dictionary.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_text_search_parser.php b/common/database/classes/database_drop_text_search_parser.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_text_search_parser.php +++ b/common/database/classes/database_drop_text_search_parser.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_text_search_template.php b/common/database/classes/database_drop_text_search_template.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_text_search_template.php +++ b/common/database/classes/database_drop_text_search_template.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_transform.php b/common/database/classes/database_drop_transform.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_transform.php +++ b/common/database/classes/database_drop_transform.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_trigger.php b/common/database/classes/database_drop_trigger.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_trigger.php +++ b/common/database/classes/database_drop_trigger.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_type.php b/common/database/classes/database_drop_type.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_type.php +++ b/common/database/classes/database_drop_type.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_user.php b/common/database/classes/database_drop_user.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_user.php +++ b/common/database/classes/database_drop_user.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_user_mapping.php b/common/database/classes/database_drop_user_mapping.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_user_mapping.php +++ b/common/database/classes/database_drop_user_mapping.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_drop_view.php b/common/database/classes/database_drop_view.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_drop_view.php +++ b/common/database/classes/database_drop_view.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_end.php b/common/database/classes/database_end.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_end.php +++ b/common/database/classes/database_end.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_execute.php b/common/database/classes/database_execute.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_execute.php +++ b/common/database/classes/database_execute.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_explain.php b/common/database/classes/database_explain.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_explain.php +++ b/common/database/classes/database_explain.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_fetch.php b/common/database/classes/database_fetch.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_fetch.php +++ b/common/database/classes/database_fetch.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_grant.php b/common/database/classes/database_grant.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_grant.php +++ b/common/database/classes/database_grant.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_import_foreign_schema.php b/common/database/classes/database_import_foreign_schema.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_import_foreign_schema.php +++ b/common/database/classes/database_import_foreign_schema.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_insert.php b/common/database/classes/database_insert.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_insert.php +++ b/common/database/classes/database_insert.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_listen.php b/common/database/classes/database_listen.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_listen.php +++ b/common/database/classes/database_listen.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_load.php b/common/database/classes/database_load.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_load.php +++ b/common/database/classes/database_load.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_lock.php b/common/database/classes/database_lock.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_lock.php +++ b/common/database/classes/database_lock.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_move.php b/common/database/classes/database_move.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_move.php +++ b/common/database/classes/database_move.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_notify.php b/common/database/classes/database_notify.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_notify.php +++ b/common/database/classes/database_notify.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_prepare.php b/common/database/classes/database_prepare.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_prepare.php +++ b/common/database/classes/database_prepare.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_prepare_transaction.php b/common/database/classes/database_prepare_transaction.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_prepare_transaction.php +++ b/common/database/classes/database_prepare_transaction.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_reassign_owned.php b/common/database/classes/database_reassign_owned.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_reassign_owned.php +++ b/common/database/classes/database_reassign_owned.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_refresh_materialized.php b/common/database/classes/database_refresh_materialized.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_refresh_materialized.php +++ b/common/database/classes/database_refresh_materialized.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_reindex.php b/common/database/classes/database_reindex.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_reindex.php +++ b/common/database/classes/database_reindex.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_release_savepoint.php b/common/database/classes/database_release_savepoint.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_release_savepoint.php +++ b/common/database/classes/database_release_savepoint.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_reset.php b/common/database/classes/database_reset.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_reset.php +++ b/common/database/classes/database_reset.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_revoke.php b/common/database/classes/database_revoke.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_revoke.php +++ b/common/database/classes/database_revoke.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_rollback_prepared.php b/common/database/classes/database_rollback_prepared.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_rollback_prepared.php +++ b/common/database/classes/database_rollback_prepared.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_rollback_to_savepoint.php b/common/database/classes/database_rollback_to_savepoint.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_rollback_to_savepoint.php +++ b/common/database/classes/database_rollback_to_savepoint.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_savepoint.php b/common/database/classes/database_savepoint.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_savepoint.php +++ b/common/database/classes/database_savepoint.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_security_label.php b/common/database/classes/database_security_label.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_security_label.php +++ b/common/database/classes/database_security_label.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_select.php b/common/database/classes/database_select.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_select.php +++ b/common/database/classes/database_select.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_select_into.php b/common/database/classes/database_select_into.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_select_into.php +++ b/common/database/classes/database_select_into.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_set.php b/common/database/classes/database_set.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_set.php +++ b/common/database/classes/database_set.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_set_constraints.php b/common/database/classes/database_set_constraints.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_set_constraints.php +++ b/common/database/classes/database_set_constraints.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_set_role.php b/common/database/classes/database_set_role.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_set_role.php +++ b/common/database/classes/database_set_role.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_set_session_authorization.php b/common/database/classes/database_set_session_authorization.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_set_session_authorization.php +++ b/common/database/classes/database_set_session_authorization.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_set_transaction.php b/common/database/classes/database_set_transaction.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_set_transaction.php +++ b/common/database/classes/database_set_transaction.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_show.php b/common/database/classes/database_show.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_show.php +++ b/common/database/classes/database_show.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_start_transaction.php b/common/database/classes/database_start_transaction.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_start_transaction.php +++ b/common/database/classes/database_start_transaction.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_string.php b/common/database/classes/database_string.php index ed43c99..c57cd15 100644 --- a/common/database/classes/database_string.php +++ b/common/database/classes/database_string.php @@ -18,12 +18,15 @@ class c_database_string { public const ALLOW_CONNECTIONS = 'allow_connections'; public const AS = 'as'; public const ASCEND = 'asc'; + public const CALLED_ON_NULL_INPUT = 'called on null input'; public const CASCADE = 'cascade'; public const CAST = 'cast'; public const COLLATION = 'collation'; public const CONNECTION_LIMIT = 'connection limit'; public const CONVERSION = 'conversion'; + public const COST = 'cost'; public const CREATE = 'create'; + public const DEFAULT = 'default'; public const DELETE = 'delete'; public const DEPENDS_ON_EXTENSION = 'depends on extension'; public const DESCEND = 'desc'; @@ -37,6 +40,7 @@ class c_database_string { public const ENABLE_TRIGGER = 'enable trigger'; public const EVENT_TRIGGER = 'event trigger'; public const EXECUTE = 'execute'; + public const EXTERNAL = 'external'; public const FALSE = 'false'; public const FOREIGN_DATA_WRAPPER = 'foreign data wrapper'; public const FOREIGN_TABLE = 'foreign table'; @@ -50,6 +54,7 @@ class c_database_string { public const GROUP_BY = 'group by'; public const HANDLER = 'handler'; public const IF_EXISTS = 'if exists'; + public const IMMUTABLE = 'immutable'; public const IN = 'in'; public const INOUT = 'inout'; public const IN_SCHEMA = 'in schema'; @@ -57,10 +62,12 @@ class c_database_string { public const INSERT = 'insert'; public const IS_TEMPLATE = 'is_template'; public const LANGUAGE = 'language'; + public const LEAKPROOF = 'leakproof'; public const MATERIALIZED_VIEW = 'materialized view'; public const NO_HANDLER = 'no handler'; public const NO_INHERIT = 'no inherit'; public const NO_VALIDATOR = 'no validator'; + public const NOT_LEAKPROOF = 'not leakproof'; public const NOT_NULL = 'not null'; public const NOT_VALID = 'not valid'; public const ON_FUNCTIONS = 'on functons'; @@ -75,6 +82,7 @@ class c_database_string { public const ORDER_BY = 'order by'; public const OUT = 'out'; public const OWNER_TO = 'owner to'; + public const PARALLEL = 'parallel'; public const PROCEDURAL = 'procedural'; public const PUBLIC = 'public'; public const REFERENCES = 'references'; @@ -85,9 +93,15 @@ class c_database_string { public const RESET = 'reset'; public const RESET_ALL = 'reset all'; public const RESTRICT = 'restrict'; + public const RESTRICTED = 'restricted'; + public const RETURNS_NULL_ON_NULL_INPUT = 'returns null on null input'; public const REVOKE = 'revoke'; public const ROLE = 'role'; + public const ROWS = 'rows'; + public const SAFE = 'safe'; public const SCHEMA = 'schema'; + public const SECURITY_DEFINER = 'security definer'; + public const SECURITY_INVOKER = 'security invoker'; public const SELECT = 'select'; public const SEQUENCE = 'sequence'; public const SERVER = 'server'; @@ -97,6 +111,8 @@ class c_database_string { public const SET_TABLESPACE = 'set tablespace'; public const SET_WITH_OIDS = 'set with oids'; public const SET_WITHOUT_OIDS = 'set without oids'; + public const STABLE = 'stable'; + public const STRICT = 'strict'; public const TABLE = 'table'; public const TEXT_SEARCH_CONFIGURATION = 'text search configuration'; public const TEXT_SEARCH_DICTIONARY = 'text search dictionary'; @@ -108,6 +124,7 @@ class c_database_string { public const TRUNCATE = 'truncate'; public const TYPE = 'type'; public const TO = 'to'; + public const UNSAFE = 'unsafe'; public const UPDATE = 'update'; public const USAGE = 'usage'; public const USER = 'user'; @@ -117,6 +134,7 @@ class c_database_string { public const VALIDATOR = 'validator'; public const VALIDATE_CONSTRAINT = 'validate constraint'; public const VARIADIC = 'variadic'; + public const VOLATILE = 'volatile'; public const VIEW = 'view'; public const WITH = 'with'; public const WITH_GRANT_OPTION = 'with grant option'; diff --git a/common/database/classes/database_truncate.php b/common/database/classes/database_truncate.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_truncate.php +++ b/common/database/classes/database_truncate.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_unlisten.php b/common/database/classes/database_unlisten.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_unlisten.php +++ b/common/database/classes/database_unlisten.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_update.php b/common/database/classes/database_update.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_update.php +++ b/common/database/classes/database_update.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_vacuum.php b/common/database/classes/database_vacuum.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_vacuum.php +++ b/common/database/classes/database_vacuum.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/classes/database_values.php b/common/database/classes/database_values.php index bc3389e..54885a7 100644 --- a/common/database/classes/database_values.php +++ b/common/database/classes/database_values.php @@ -14,8 +14,6 @@ require_once('common/database/classes/database_query.php'); /** * The class for building and returning a Postgresql ALTER COALATION query string. * - * When no argument mode is specified, then a wildcard * is auto-provided for the aggregate_signature parameter. - * * @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html */ class c_database_alter_coalation extends c_database_query { diff --git a/common/database/traits/database_add_user.php b/common/database/traits/database_add_user.php new file mode 100644 index 0000000..0a2f256 --- /dev/null +++ b/common/database/traits/database_add_user.php @@ -0,0 +1,121 @@ +add_user = NULL; + return new c_base_return_true(); + } + + if (!is_bool($name) && !is_string($name) && $name !== e_database_user::CURRENT && $name !== e_database_user::SESSION) { + $error = c_base_error::s_log(NULL, ['arguments' => [':{argument_name}' => 'name', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_ARGUMENT); + return c_base_return_error::s_false($error); + } + + if (!is_array($this->add_user)) { + $this->add_user = [ + 'type' => TRUE, + 'names' => [], + ]; + } + + if (is_bool($name)) { + $this->add_user['type'] = $name; + } + else { + $this->add_user['names'][] = $name; + } + + return new c_base_return_true(); + } + + /** + * Get the add/drop user settings. + * + * @return c_base_return_array|c_base_return_null + * An array of add/drop user settings on success. + * NULL is returned if not set (add/drop user is not to be used). + * NULL with the error bit set is returned on error. + */ + public function get_add_user() { + if (is_null($this->add_user)) { + return new c_base_return_null(); + } + + if (is_array($this->add_use)) { + return c_base_return_array::s_new($this->add_user); + } + + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'add_user', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + return c_base_return_error::s_null($error); + } + + /** + * Perform the common build process for this trait. + * + * As an internal trait method, the caller is expected to perform any appropriate validation. + * + * @return string|null + * A string is returned on success. + * NULL is returned if there is nothing to process or there is an error. + */ + protected function p_do_build_add_user() { + if (is_null($this->add_user)) { + return NULL; + } + + $values = []; + foreach ($this->add_user['names'] as $name) { + if ($name === e_database_user::CURRENT) { + $values[] = c_database_string::CURRENT; + } + else if ($name === e_database_user::SESSION) { + $values[] = c_database_string::SESSION; + } + else if (is_string($name)) { + $values[] = $name; + } + } + + $value = $this->add_user['type'] ? c_database_string::ADD : c_database_string::DROP; + $value .= ' ' . c_database_string::USER; + $value .= ' ' . implode(', ', $values); + return $value; + } +} diff --git a/common/database/traits/database_constraint.php b/common/database/traits/database_constraint.php index a62eed5..bc4655a 100644 --- a/common/database/traits/database_constraint.php +++ b/common/database/traits/database_constraint.php @@ -104,86 +104,23 @@ trait t_database_constraint { } /** - * Get the currently assigned name. + * Get the currently assigned constraint settings. * - * @return c_base_return_string|c_base_return_null - * A name on success. + * @return c_base_return_array|c_base_return_null + * An array of constraint settings on success. * NULL is returned if not set (constraint is not to be used). * NULL with the error bit set is returned on error. */ - public function get_constraint_name() { + public function get_constraint() { if (is_null($this->constraint)) { return new c_base_return_null(); } - if (is_string($this->constraint['name'])) { - return c_base_return_string::s_new($this->constraint['name']); + if (is_array($this->constraint)) { + return c_base_return_array::s_new($this->constraint); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'constraint[name]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned type. - * - * @return c_base_return_int|c_base_return_null - * A type code on success. - * NULL is returned if not set (constraint is not to be used). - * NULL with the error bit set is returned on error. - */ - public function get_constraint_type() { - if (is_null($this->constraint)) { - return new c_base_return_null(); - } - - if (is_int($this->constraint['type'])) { - return c_base_return_int::s_new($this->constraint['type']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'constraint[type]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned exists or invalid setting. - * - * @return c_base_return_bool|c_base_return_null - * A boolean on success. - * NULL is returned if not set (constraint is not to be used). - * NULL with the error bit set is returned on error. - */ - public function get_constraint_exists_or_invalid() { - if (is_null($this->constraint) || is_null($this->constraint['exists_or_invalid'])) { - return new c_base_return_null(); - } - - if (is_bool($this->constraint['exists_or_invalid'])) { - return c_base_return_bool::s_new($this->constraint['exists_or_invalid']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'constraint[exists_or_invalid]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned cascade setting. - * - * @return c_base_return_int|c_base_return_null - * A cascade code on success. - * NULL is returned if not set (constraint is not to be used). - * NULL with the error bit set is returned on error. - */ - public function get_constraint_cascade() { - if (is_null($this->constraint) || is_null($this->constraint['cascade'])) { - return new c_base_return_null(); - } - - if (is_int($this->constraint['cascade'])) { - return c_base_return_bool::s_new($this->constraint['cascade']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'constraint[cascade]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'constraint', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_enable_trigger.php b/common/database/traits/database_enable_trigger.php index fc45741..11640c5 100644 --- a/common/database/traits/database_enable_trigger.php +++ b/common/database/traits/database_enable_trigger.php @@ -85,65 +85,23 @@ trait t_database_enable_trigger { } /** - * Get the currently assigned ENABLE or DISABLE status. + * Get the currently assigned enable trigger settings. * - * @return c_base_return_bool|c_base_return_null - * TRUE for ENABLE TRIGGER or FALSE for DISABLE TRIGGER on success. + * @return c_base_return_array|c_base_return_null + * An array containing the enable trigger settings on success. * NULL is returned if not set (not to be confused with DISABLE TRIGGER). * NULL with the error bit set is returned on error. */ - public function get_enable_trigger_status() { + public function get_enable_trigger() { if (is_null($this->enable_trigger)) { return new c_base_return_null(); } - if (is_bool($this->enable_trigger['status'])) { - return c_base_return_bool::s_new($this->enable_trigger['status']); + if (is_array($this->enable_trigger)) { + return c_base_return_array::s_new($this->enable_trigger); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'enable_trigger[status]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned ENABLE or DISABLE type. - * - * @return c_base_return_int|c_base_return_null - * An integer representing the type code on success. - * NULL is returned if not set. - * NULL with the error bit set is returned on error. - */ - public function get_enable_trigger_type() { - if (is_null($this->enable_trigger)) { - return new c_base_return_null(); - } - - if (is_int($this->enable_trigger['type'])) { - return c_base_return_int::s_new($this->enable_trigger['type']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'enable_trigger[type]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned ENABLE or DISABLE name. - * - * @return c_base_return_string|c_base_return_null - * An integer representing the type code on success. - * NULL is returned if not set. - * NULL with the error bit set is returned on error. - */ - public function get_enable_trigger_name() { - if (is_null($this->enable_trigger) || is_null($this->enable_trigger['name'])) { - return new c_base_return_null(); - } - - if (is_int($this->enable_trigger['name'])) { - return c_base_return_int::s_new($this->enable_trigger['name']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'enable_trigger[name]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'enable_trigger', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_function_action.php b/common/database/traits/database_function_action.php index 9c47935..35b7a0a 100644 --- a/common/database/traits/database_function_action.php +++ b/common/database/traits/database_function_action.php @@ -48,7 +48,7 @@ trait t_database_function_action { return new c_base_return_true(); } - switch($function_action) { + switch ($function_action) { case e_database_function_action::CALLED_ON_NULL_INPUT: case e_database_function_action::COST: case e_database_function_action::IMMUTABLE: @@ -157,6 +157,76 @@ trait t_database_function_action { return NULL; } - // @todo + $values = []; + foreach ($this->function_action as $function_action) { + if ($function_action['type'] === e_database_function_action::CALLED_ON_NULL_INPUT) { + $values[] = c_database_string::CALLED_ON_NULL_INPUT; + } + else if ($function_action['type'] === e_database_function_action::COST) { + $values[] = c_database_string::COST . ' ' . $function_action['parameter_1']; + } + else if ($function_action['type'] === e_database_function_action::IMMUTABLE) { + $values[] = c_database_string::IMMUTABLE; + } + else if ($function_action['type'] === e_database_function_action::LEAKPROOF) { + $values[] = c_database_string::LEAKPROOF; + } + else if ($function_action['type'] === e_database_function_action::NOT_LEAKPROOF) { + $values[] = c_database_string::NOT_LEAKPROOF; + } + else if ($function_action['type'] === e_database_function_action::PARALLEL_RESTRICTED) { + $values[] = c_database_string::PARALLEL_RESTRICTED; + } + else if ($function_action['type'] === e_database_function_action::PARALLEL_SAFE) { + $values[] = c_database_string::PARALLEL_SAFE; + } + else if ($function_action['type'] === e_database_function_action::PARALLEL_UNSAFE) { + $values[] = c_database_string::PARALLEL_UNSAFE; + } + else if ($function_action['type'] === e_database_function_action::RESET) { + $values[] = c_database_string::RESET; + } + else if ($function_action['type'] === e_database_function_action::RESET_ALL) { + $values[] = c_database_string::RESET_ALL; + } + else if ($function_action['type'] === e_database_function_action::RETURNS_NULL_ON_NULL_INPUT) { + $values[] = c_database_string::RETURNS_NULL_ON_NULL_INPUT; + } + else if ($function_action['type'] === e_database_function_action::ROWS) { + $values[] = c_database_string::ROWS . ' ' . $function_action['parameter_1']; + } + else if ($function_action['type'] === e_database_function_action::SECURITY_DEFINER) { + $values[] = c_database_string::SECURITY_DEFINER; + } + else if ($function_action['type'] === e_database_function_action::SECURITY_INVOKER) { + $values[] = c_database_string::SECURITY_INVOKER; + } + else if ($function_action['type'] === e_database_function_action::SET_EQUAL) { + $value = is_null($function_action['parameter_2']) ? c_database_string::DEFAULT : $function_action['parameter_2']; + $values[] = c_database_string::SET . ' ' . $function_action['parameter_1'] . ' = ' . $value; + unset($value); + } + else if ($function_action['type'] === e_database_function_action::SET_FROM) { + $values[] = c_database_string::SET . ' ' . $function_action['parameter_1'] . ' ' . c_database_string::FROM_CURRENT; + unset($value); + } + else if ($function_action['type'] === e_database_function_action::SET_TO) { + $value = is_null($function_action['parameter_2']) ? c_database_string::DEFAULT : $function_action['parameter_2']; + $values[] = c_database_string::SET . ' ' . $function_action['parameter_1'] . ' ' . c_database_string::TO . ' ' . $value; + unset($value); + } + else if ($function_action['type'] === e_database_function_action::STABLE) { + $values[] = c_database_string::STABLE; + } + else if ($function_action['type'] === e_database_function_action::STRICT) { + $values[] = c_database_string::STRICT; + } + else if ($function_action['type'] === e_database_function_action::VOLATILE) { + $values[] = c_database_string::VOLATILE; + } + } + unset($function_action); + + return implode(', ', $values); } } diff --git a/common/database/traits/database_inherit.php b/common/database/traits/database_inherit.php index fc1965f..863c61a 100644 --- a/common/database/traits/database_inherit.php +++ b/common/database/traits/database_inherit.php @@ -49,14 +49,15 @@ trait t_database_inherit { 'name' => $name, 'inherit' => $inherit, ]; + return new c_base_return_true(); } /** - * Get the currently assigned inherit status. + * Get the currently assigned inherit settings. * - * @return c_base_return_bool|c_base_return_null - * TRUE for INHERIT or FALSE for NO INHERIT on success. + * @return c_base_return_array|c_base_return_null + * An array containing the inherit settings on success. * NULL is returned if not set. * NULL with the error bit set is returned on error. */ @@ -65,32 +66,11 @@ trait t_database_inherit { return new c_base_return_null(); } - if (is_bool($this->inherit['inherit'])) { - return c_base_return_bool::s_new($this->inherit['inherit']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'inherit[inherit]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned name to inherit from. - * - * @return c_base_return_string|c_base_return_null - * A name on success. - * NULL is returned if not set. - * NULL with the error bit set is returned on error. - */ - public function get_inherit_name() { - if (is_null($this->inherit)) { - return new c_base_return_null(); - } - - if (is_string($this->inherit['name'])) { - return c_base_return_string::s_new($this->inherit['name']); + if (is_array($this->inherit)) { + return c_base_return_array::s_new($this->inherit); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'inherit[name]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'inherit', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_owner_to.php b/common/database/traits/database_owner_to.php index 6d2d12c..326aaaf 100644 --- a/common/database/traits/database_owner_to.php +++ b/common/database/traits/database_owner_to.php @@ -83,10 +83,10 @@ trait t_database_owner_to { } /** - * Get the currently assigned sql owner to. + * Get the currently assigned owner to settings. * - * @return c_base_return_int|c_base_return_null - * A (e_database_user) code representing the owner on success. + * @return c_base_return_array|c_base_return_null + * An array containing the owner to settings on success. * NULL without error bit set is returned if not assigned. * NULL with the error bit set is returned on error. */ @@ -95,32 +95,11 @@ trait t_database_owner_to { return new c_base_return_null(); } - if (is_int($this->owner_to['type'])) { - return c_base_return_int::s_new($this->owner_to['type']); + if (is_array($this->owner_to)) { + return c_base_return_array::s_new($this->owner_to); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'owner_to[type]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned sql owner to specified name. - * - * @return c_base_return_string|c_base_return_null - * An owner to name on success. - * NULL without error bit set is returned if not assigned. - * NULL with the error bit set is returned on error. - */ - public function get_owner_to_user_name() { - if (is_null($this->owner_to)) { - return new c_base_return_null(); - } - - if (is_string($this->owner_to['value'])) { - return c_base_return_string::s_new($this->owner_to['value']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'owner_to[value]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'owner_to', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_rename_column.php b/common/database/traits/database_rename_column.php index 90f2507..29906af 100644 --- a/common/database/traits/database_rename_column.php +++ b/common/database/traits/database_rename_column.php @@ -57,44 +57,23 @@ trait t_database_rename_column { } /** - * Get the currently assigned name to rename from. + * Get the currently assigned rename from settings. * - * @return c_base_return_string|c_base_return_null - * A name on success. + * @return c_base_return_array|c_base_return_null + * An array containing rename from settings on success. * NULL is returned if not set. * NULL with the error bit set is returned on error. */ - public function get_rename_column_from_name() { + public function get_rename_column() { if (is_null($this->rename_column)) { return new c_base_return_null(); } - if (is_string($this->rename_column['from'])) { - return c_base_return_string::s_new($this->rename_column['from']); + if (is_array($this->rename_column)) { + return c_base_return_array::s_new($this->rename_column['from']); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'rename_column[from]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned name to rename to. - * - * @return c_base_return_string|c_base_return_null - * A name on success. - * NULL is returned if not set. - * NULL with the error bit set is returned on error. - */ - public function get_rename_column_to_name() { - if (is_null($this->rename_column)) { - return new c_base_return_null(); - } - - if (is_string($this->rename_column['to'])) { - return c_base_return_string::s_new($this->rename_column['to']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'rename_column[to]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'rename_column', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_reset.php b/common/database/traits/database_reset.php index 44b0004..fb026af 100644 --- a/common/database/traits/database_reset.php +++ b/common/database/traits/database_reset.php @@ -74,10 +74,10 @@ trait t_database_reset { } /** - * Get the currently assigned sql reset. + * Get the currently assigned reset settings. * - * @return c_base_return_int|c_base_return_null - * A (c_database_reset) code representing the reset on success. + * @return c_base_return_array|c_base_return_null + * An array containing reset settings on success. * NULL is returned if not set (reset tablespace is not to be used). * NULL with the error bit set is returned on error. */ @@ -86,32 +86,11 @@ trait t_database_reset { return new c_base_return_null(); } - if (is_int($this->reset['type'])) { - return c_base_return_int::s_new($this->reset['type']); + if (is_array($this->reset)) { + return c_base_return_array::s_new($this->reset); } - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'reset[type]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned sql reset parameter value. - * - * @return c_base_return_string|c_base_return_null - * A reset parameter value on success. - * NULL without error bit reset is returned if not assigned. - * NULL with the error bit reset is returned on error. - */ - public function get_reset_parameter() { - if (is_null($this->reset) || is_null($this->reset['value'])) { - return new c_base_return_null(); - } - - if (is_string($this->reset['value'])) { - return c_base_return_string::s_new($this->reset['value']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'reset[value]', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'reset', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); return c_base_return_error::s_null($error); } diff --git a/common/database/traits/database_role_specification.php b/common/database/traits/database_role_specification.php new file mode 100644 index 0000000..adb824e --- /dev/null +++ b/common/database/traits/database_role_specification.php @@ -0,0 +1,104 @@ +role_specification = NULL; + return new c_base_return_true(); + } + + if (!is_string($name) && $name !== e_database_role::CURRENT && $name !== e_database_role::SESSION) { + $error = c_base_error::s_log(NULL, ['arguments' => [':{argument_name}' => 'name', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_ARGUMENT); + return c_base_return_error::s_false($error); + } + + $this->role_specification = $name; + return new c_base_return_true(); + } + + /** + * Get the role specification. + * + * @return c_base_return_int|c_base_return_string|c_base_return_null + * A role name string or an integer representing either e_database_role::CURRENT or e_database_role::SESSION on success. + * NULL is returned if not set. + * NULL with the error bit set is returned on error. + */ + public function get_role_specification($index = NULL) { + if (is_null($this->role_specification)) { + return new c_base_return_null(); + } + + if (is_string($this->role_specification)) { + return c_base_return_array::s_new($this->role_specification); + } + else if ($this->role_specification === e_database_role::CURRENT || $this->role_specification === e_database_role::SESSION) { + return c_base_return_int::s_new($this->role_specification); + } + + $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'role_specification', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); + return c_base_return_error::s_null($error); + } + + /** + * Perform the common build process for this trait. + * + * As an internal trait method, the caller is expected to perform any appropriate validation. + * + * @return string|null + * A string is returned on success. + * NULL is returned if there is nothing to process or there is an error. + */ + protected function p_do_build_role_specification() { + if (is_null($this->role_specification)) { + return NULL; + } + + $value = NULL; + if (is_string($this->role_specification)) { + $value = $this->role_specification; + } + else if ($this->role_specification === e_database_role::CURRENT) { + $value = c_database_string::CURRENT; + } + else if ($this->role_specification === e_database_role::SESSION) { + $value = c_database_string::SESSION; + } + + return $value; + } +} diff --git a/common/database/traits/database_set.php b/common/database/traits/database_set.php index cb18579..ec8377b 100644 --- a/common/database/traits/database_set.php +++ b/common/database/traits/database_set.php @@ -83,10 +83,10 @@ trait t_database_set { } /** - * Get the currently assigned sql set. + * Get the currently assigned set settings. * - * @return c_base_return_int|c_base_return_null - * A (c_database_set) code representing the set on success. + * @return c_base_return_array|c_base_return_null + * An array containing set settings on success. * NULL is returned if not set (set tablespace is not to be used). * NULL with the error bit set is returned on error. */ @@ -95,8 +95,8 @@ trait t_database_set { return new c_base_return_null(); } - if (is_int($this->set['type'])) { - return c_base_return_int::s_new($this->set['type']); + if (is_array($this->set)) { + return c_base_return_array::s_new($this->set); } $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'set', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); @@ -104,48 +104,6 @@ trait t_database_set { } /** - * Get the currently assigned sql set parameter value. - * - * @return c_base_return_string|c_base_return_null - * A set parameter value on success. - * NULL without error bit set is returned if not assigned. - * NULL with the error bit set is returned on error. - */ - public function get_set_parameter() { - if (is_null($this->set) || is_null($this->set['parameter'])) { - return new c_base_return_null(); - } - - if (is_string($this->set['parameter'])) { - return c_base_return_string::s_new($this->set['parameter']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'set_parameter', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** - * Get the currently assigned sql set value value. - * - * @return c_base_return_string|c_base_return_null - * A set value value on success. - * NULL without error bit set is returned if not assigned. - * NULL with the error bit set is returned on error. - */ - public function get_set_value() { - if (is_null($this->set) || is_null($this->set['value'])) { - return new c_base_return_null(); - } - - if (is_string($this->set['value'])) { - return c_base_return_string::s_new($this->set['value']); - } - - $error = c_base_error::s_log(NULL, ['arguments' => [':{variable_name}' => 'set_value', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_VARIABLE); - return c_base_return_error::s_null($error); - } - - /** * Perform the common build process for this trait. * * As an internal trait method, the caller is expected to perform any appropriate validation.