Begin implementing query parameter class.
Move numeration classes into explicit numeration directory and update class names.
Continue refactoring database classes.
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_reset.php');
+require_once('common/database/enumerations/database_set.php');
+
require_once('common/database/classes/database_query.php');
require_once('common/database/classes/database_string.php');
use t_database_name;
use t_database_rename_to;
use t_database_owner_to;
- use t_database_set_tablespace;
use t_database_set;
+ use t_database_set_tablespace;
use t_database_reset;
protected const pr_QUERY_COMMAND = 'alter database';
$this->query_name = NULL;
$this->query_rename_to = NULL;
$this->query_owner_to = NULL;
- $this->query_set_tablespace = NULL;
$this->query_set = NULL;
+ $this->query_set_tablespace = NULL;
$this->query_set_parameter = NULL;
$this->query_set_value = NULL;
$this->query_reset = NULL;
unset($this->query_name);
unset($this->query_rename_to);
unset($this->query_owner_to);
- unset($this->query_set_tablespace);
unset($this->query_set);
+ unset($this->query_set_tablespace);
unset($this->query_set_parameter);
unset($this->query_set_value);
unset($this->query_reset);
$this->value .= ' ' . c_database_string::SET_TABLESPACE . ' (' . $this->query_set_tablespace . ')';
}
else if (is_int($this->query_set)) {
- if ($this->query_set == c_database_code_set::TO) {
+ if ($this->query_set === e_database_set::TO) {
if (is_null($this->query_set_parameter)) {
$this->value .= ' ' . c_database_string::SET . ' ' . $this->query_set_parameter . ' ' . c_database_string::TO . ' ' . c_database_string::DEFAULT;
}
$this->value .= ' ' . c_database_string::SET . ' ' . $this->query_set_parameter . ' ' . c_database_string::TO . ' ' . $this->query_set_value;
}
}
- else if ($this->query_set == c_database_code_set::EQUAL) {
+ else if ($this->query_set === e_database_set::EQUAL) {
if (is_null($this->query_set_parameter)) {
$this->value .= ' ' . c_database_string::SET . ' ' . $this->query_set_parameter . ' = ' . c_database_string::DEFAULT;
}
$this->value .= ' ' . c_database_string::SET . ' ' . $this->query_set_parameter . ' = ' . $this->query_set_value;
}
}
- else if ($this->query_set == c_database_code_set::FROM_CURRENT) {
+ else if ($this->query_set == e_database_set::FROM_CURRENT) {
if (is_string($this->query_set_parameter)) {
$this->value .= ' ' . c_database_string::SET . ' ' . $this->query_set_parameter . ' = ' . c_database_string::FROM_CURRENT;
}
}
}
else if (is_string($this->query_reset)) {
- if ($this->query_set == c_database_code_reset::PARAMETER) {
+ if ($this->query_set === e_database_reset::PARAMETER) {
if (is_string($this->query_set_parameter)) {
$this->value .= ' ' . c_database_string::RESET . ' ' . $this->query_set_parameter;
}
}
- else if ($this->query_set == c_database_code_reset::ALL) {
+ else if ($this->query_set === e_database_reset::ALL) {
$this->value .= ' ' . c_database_string::RESET . ' ' . c_database_string::ALL;
}
}
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_action.php');
+require_once('common/database/enumerations/database_on.php');
+require_once('common/database/enumerations/database_option.php');
+require_once('common/database/enumerations/database_privilege.php');
+
require_once('common/database/classes/database_query.php');
require_once('common/database/traits/database_in_schema.php');
use t_database_action;
use t_database_option;
- public const ACTION_NONE = 0;
- public const ACTION_GRANT = 1;
- public const ACTION_REVOKE = 2;
-
- public const ON_NONE = 0;
- public const ON_TABLES_TO = 1;
- public const ON_SEQUENCES = 2;
- public const ON_FUNCTIONS = 3;
- public const ON_TYPES = 4;
- public const ON_SCHEMAS = 5;
-
- public const PRIVILEGE_NONE = 0;
- public const PRIVILEGE_SELECT = 1;
- public const PRIVILEGE_INSERT = 2;
- public const PRIVILEGE_UPDATE = 3;
- public const PRIVILEGE_DELETE = 4;
- public const PRIVILEGE_TRUNCATE = 5;
- public const PRIVILEGE_REFERENCES = 6;
- public const PRIVILEGE_TRIGGER = 7;
- public const PRIVILEGE_USAGE = 8;
- public const PRIVILEGE_EXECUTE = 9;
- public const PRIVILEGE_CREATE = 10;
- public const PRIVILEGE_ALL = 11;
-
- public const OPTION_NONE = 0;
- public const OPTION_CASCADE = 1;
- public const OPTION_RESTRICT = 2;
-
protected const pr_QUERY_COMMAND = 'alter default privileges';
protected $abbreviated;
}
switch ($on) {
- case static::ON_TABLES_TO:
- case static::ON_SEQUENCES:
- case static::ON_FUNCTIONS:
- case static::ON_TYPES:
- case static::ON_SCHEMAS:
+ case e_database_on::TABLES_TO:
+ case e_database_on::SEQUENCES:
+ case e_database_on::FUNCTIONS:
+ case e_database_on::TYPES:
+ case e_database_on::SCHEMAS:
$this->on = $on;
return new c_base_return_true();
default:
}
switch ($this->query_action) {
- case static::ACTION_GRANT:
- case static::ACTION_REVOKE:
+ case e_database_action::_GRANT:
+ case e_database_action::_REVOKE:
break;
default:
return new c_base_return_false();
unset($names);
}
- if ($this->query_action === static::ACTION_GRANT) {
+ if ($this->query_action === e_database_action::ACTION_GRANT) {
$this->value .= ' ' . c_database_string::GRANT;
}
- else if ($this->query_action === static::ACTION_REVOKE) {
+ else if ($this->query_action === e_database_action::ACTION_REVOKE) {
$this->value .= ' ' . c_database_string::REVOKE;
if ($this->option_grant) {
foreach ($this->privileges as $privilege) {
$privileges .= ', ';
switch ($privilege) {
- case static::PRIVILEGE_SELECT:
+ case e_database_privilege::SELECT:
$privileges .= c_database_string::SELECT;
break;
- case static::PRIVILEGE_INSERT:
+ case e_database_privilege::INSERT:
$privileges .= c_database_string::INSERT;
break;
- case static::PRIVILEGE_UPDATE:
+ case e_database_privilege::UPDATE:
$privileges .= c_database_string::UPDATE;
break;
- case static::PRIVILEGE_DELETE:
+ case e_database_privilege::DELETE:
$privileges .= c_database_string::DELETE;
break;
- case static::PRIVILEGE_TRUNCATE:
+ case e_database_privilege::TRUNCATE:
$privileges .= c_database_string::TRUNCATE;
break;
- case static::PRIVILEGE_REFERENCES:
+ case e_database_privilege::REFERENCES:
$privileges .= c_database_string::REFERENCES;
break;
- case static::PRIVILEGE_TRIGGER:
+ case e_database_privilege::TRIGGER:
$privileges .= c_database_string::TRIGGER;
break;
- case static::PRIVILEGE_USAGE:
+ case e_database_privilege::USAGE:
$privileges .= c_database_string::USAGE;
break;
- case static::PRIVILEGE_EXECUTE:
+ case e_database_privilege::EXECUTE:
$privileges .= c_database_string::EXECUTE;
break;
- case static::PRIVILEGE_CREATE:
+ case e_database_privilege::CREATE:
$privileges .= c_database_string::CREATE;
break;
- case static::PRIVILEGE_ALL:
+ case e_database_privilege::ALL:
$privileges .= c_database_string::ALL;
break;
default:
// ON ...
switch($this->on) {
- case static::ON_TABLES_TO:
+ case e_database_on::TABLES_TO:
$this->value .= ' ' . c_database_string::ON_TABLES_TO;
break;
- case static::ON_SEQUENCES:
+ case e_database_on::SEQUENCES:
$this->value .= ' ' . c_database_string::ON_SEQUENCES;
break;
- case static::ON_FUNCTIONS:
+ case e_database_on::FUNCTIONS:
$this->value .= ' ' . c_database_string::ON_FUNCTIONS;
break;
- case static::ON_TYPES:
+ case e_database_on::TYPES:
$this->value .= ' ' . c_database_string::ON_TYPES;
break;
- case static::ON_SCHEMAS:
+ case e_database_on::SCHEMAS:
$this->value .= ' ' . c_database_string::ON_SCHEMAS;
break;
}
// [ TO | FROM ] ... role names ...
- if ($this->query_action === static::ACTION_GRANT) {
+ if ($this->query_action === e_database_action::GRANT) {
$this->value .= ' ' . c_database_string::TO;
}
- else if ($this->query_action === static::ACTION_REVOKE) {
+ else if ($this->query_action === e_database_action::REVOKE) {
$this->value .= ' ' . c_database_string::FROM;
}
}
unset($role_name);
- if ($this->query_action === static::ACTION_GRANT) {
+ if ($this->query_action === e_database_action::GRANT) {
// [ WITH GRANT OPTION ]
if ($this->option_grant) {
$this->value .= ' ' . c_database_string::WITH_GRANT_OPTION;
}
}
- else if ($this->query_action === static::ACTION_REVOKE) {
+ else if ($this->query_action === e_database_action::REVOKE) {
// [ CASCADE | RESTRICT ]
- if ($this->query_option === static::OPTION_CASCADE) {
+ if ($this->query_option === e_database_option::CASCADE) {
$this->value .= ' ' . c_database_string::CASCADE;
}
- else if ($this->query_option === static::OPTION_RESTRICT) {
+ else if ($this->query_option === e_database_option::RESTRICT) {
$this->value .= ' ' . c_database_string::RESTRICT;
}
}
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_action.php');
+require_once('common/database/enumerations/database_option.php');
+require_once('common/database/enumerations/database_property.php');
+
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER DOMAIN query string.
use t_database_property;
use t_database_option;
- public const ACTION_NONE = 0;
- public const ACTION_ADD = 1;
- public const ACTION_DROP = 2;
- public const ACTION_DROP_CONSTRAINT = 3;
- public const ACTION_DROP_DEFAULT = 4;
- public const ACTION_OWNER_TO = 5;
- public const ACTION_RENAME_CONSTRAINT = 6;
- public const ACTION_RENAME_TO = 7;
- public const ACTION_SET = 8;
- public const ACTION_SET_DEFAULT = 9;
- public const ACTION_SET_SCHEMA = 10;
- public const ACTION_VALIDATE_CONSTRAINT = 11;
-
- public const PROPERTY_NONE = 0;
- public const PROPERTY_NOT_VALID = 1;
- public const PROPERTY_IF_EXISTS = 2;
-
- public const OPTION_NONE = 0;
- public const OPTION_CASCADE = 1;
- public const OPTION_RESTRICT = 2;
-
protected const pr_QUERY_COMMAND = 'alter domain';
protected $expression;
$action = NULL;
switch ($this->query_action) {
- case static::ACTION_ADD:
+ case e_database_action::ADD:
if (!is_string($this->constraint)) {
unset($action);
return new c_base_return_false();
$action = c_database_string::ADD;
$action .= ' ' . $this->constraint;
- if ($this->property === static::PROPERTY_NOT_VALID) {
+ if ($this->property === e_database_property::NOT_VALID) {
$action .= ' ' . c_database_string::NOT_VALID;
}
break;
- case static::ACTION_DROP:
+ case e_database_action::DROP:
$action = c_database_string::DROP;
- if ($this->property === static::PROPERTY_NOT_NULL) {
+ if ($this->property === e_database_property::NOT_NULL) {
$action .= ' ' . c_database_string::NOT_NULL;
}
break;
- case static::ACTION_DROP_CONSTRAINT:
+ case e_database_action::DROP_CONSTRAINT:
if (!is_string($this->constraint)) {
unset($action);
return new c_base_return_false();
}
$action = c_database_string::DROP_CONSTRAINT;
- if ($this->property === static::PROPERTY_IF_EXISTS) {
+ if ($this->property === e_database_property::IF_EXISTS) {
$action .= ' ' . c_database_string::IF_EXISTS;
}
$action .= ' ' . $this->constraint;
- if ($this->option === static::OPTION_RESTRICT) {
+ if ($this->option === e_database_option::RESTRICT) {
$action .= ' ' . c_database_string::RESTRICT;
}
- else if ($this->option === static::OPTION_CASCADE) {
+ else if ($this->option === e_database_option::CASCADE) {
$action .= ' ' . c_database_string::CASCADE;
}
break;
- case static::ACTION_DROP_DEFAULT:
+ case e_database_action::DROP_DEFAULT:
$action = c_database_string::DROP_DEFAULT;
break;
- case static::ACTION_OWNER_TO:
+ case e_database_action::OWNER_TO:
if (!is_string($this->query_owner_to_user_name)) {
unset($action);
return new c_base_return_false();
$action = c_database_string::OWNER_TO . ' (' . $this->query_owner_to_user_name . ')';
break;
- case static::ACTION_RENAME_CONSTRAINT:
+ case e_database_action::RENAME_CONSTRAINT:
if (!is_string($this->constraint) || !is_string($this->constraint_new)) {
unset($action);
return new c_base_return_false();
$action = c_database_string::RENAME_CONSTRAINT . ' ' . $this->constraint . ' ' . c_database_string::TO . ' ' . $this->constraint_new;
break;
- case static::ACTION_RENAME_TO:
+ case e_database_action::RENAME_TO:
if (!is_string($this->query_rename_to)) {
unset($action);
return new c_base_return_false();
$action = c_database_string::RENAME_TO . ' (' . $this->query_rename_to . ')';
break;
- case static::ACTION_SET:
+ case e_database_action::SET:
$action = c_database_string::SET;
- if ($this->property === static::PROPERTY_NOT_NULL) {
+ if ($this->property === e_database_property::NOT_NULL) {
$action .= ' ' . c_database_string::NOT_NULL;
}
break;
- case static::ACTION_SET_DEFAULT:
+ case e_database_action::SET_DEFAULT:
if (!is_string($this->expression)) {
unset($action);
return new c_base_return_false();
$action = c_database_string::SET_DEFAULT . ' ' . $this->expression;
break;
- case static::ACTION_SET_SCHEMA:
+ case e_database_action::SET_SCHEMA:
if (!is_string($this->query_set_schema)) {
unset($action);
return new c_base_return_false();
$action = ' ' . c_database_string::SET_SCHEMA . ' (' . $this->query_set_schema . ')';
break;
- case static::ACTION_VALIDATE_CONSTRAINT:
+ case e_database_action::VALIDATE_CONSTRAINT:
if (!is_string($this->constraint)) {
unset($action);
return new c_base_return_false();
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER EVENT TRIGGER query string.
* @see: https://www.postgresql.org/docs/current/static/sql-alteraggregate.html
*/
class c_database_alter_coalation extends c_database_query {
+ use t_database_action;
+ use t_database_action_property;
+ use t_database_name;
+ use t_database_owner_to;
+ use t_database_rename_to;
+
protected const pr_QUERY_COMMAND = 'alter event trigger';
*/
public function __construct() {
parent::__construct();
+
+ $this->query_action = NULL;
+ $this->query_action_property = NULL;
+ $this->query_name = NULL;
+ $this->query_owner_to = NULL;
+ $this->query_rename_to = NULL;
}
/**
* Class destructor.
*/
public function __destruct() {
+ unset($this->query_action);
+ unset($this->query_action_property);
+ unset($this->query_name);
+ unset($this->query_owner_to);
+ unset($this->query_rename_to);
+
parent::__destruct();
}
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
+++ /dev/null
-<?php
-/**
- * @file
- * Provides classes for managing codes used for generating specific Postgesql Queries.
- *
- * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
- */
-namespace n_koopa;
-
-/**
- * Codes associated with postgresql user/session information.
- */
-class c_database_code_user {
- public const NONE = 0;
- public const CURRENT = 1;
- public const SESSION = 2;
- public const NAME = 3;
-}
-
-/**
- * Codes associated with GROUP BY, ORDER BY, and related queries.
- */
-class c_database_code_direction {
- public const NONE = 0;
- public const ASCEND = 1;
- public const DESCEND = 2;
-}
-
-/**
- * Codes associated with SET and related queries.
- */
-class c_database_code_set {
- public const NONE = 0;
- public const TO = 1;
- public const EQUAL = 2;
- public const FROM_CURRENT = 3;
-}
-
-/**
- * Codes associated with RESET and related queries.
- */
-class c_database_code_reset {
- public const NONE = 0;
- public const ALL = 1;
- public const PARAMETER = 2;
-}
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides classes for specific Postgesql Queries Parameter support.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+require_once('common/base/classes/base_error.php');
+require_once('common/base/classes/base_return.php');
+
+/**
+ * An interface used to represent a Postgresql query parameter.
+ *
+ * The query parameter represents a placeholder to the assigned value (via the implementation of some specific subclass of c_base_return_value).
+ * The placeholder is intended to be inserted into the query string so that something like PHP's PDO can safely convert the placeholder to a given value.
+ * This does not store a placeholder name itself as the class itself represents that it is a placeholder.
+ *
+ * @see: c_base_return_value
+ */
+interface i_database_query_parameter {
+
+ /**
+ * @see: c_base_return_value::p_s_new()
+ */
+ public static function s_new($value);
+
+ /**
+ * @see: c_base_return_value::p_s_value()
+ */
+ public static function s_value($return);
+
+ /**
+ * @see: c_base_return_value::s_value_exact()
+ */
+ public static function s_value_exact($return);
+
+ /**
+ * @see: c_base_return_value::set_value()
+ */
+ public function set_value($value);
+
+ /**
+ * @see: c_base_return_value::get_value()
+ */
+ public function get_value();
+
+ /**
+ * @see: c_base_return_value::get_value_exact()
+ */
+ public function get_value_exact();
+}
+
+/**
+ * A query parameter representing a boolean.
+ *
+ * @see: c_base_return_bool
+ */
+class c_database_query_parameter_bool extends c_base_return_bool implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, FALSE);
+ }
+}
+
+/**
+ * A query parameter representing a string.
+ *
+ * @see: c_base_return_string
+ */
+class c_database_query_parameter_string extends c_base_return_string implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, '');
+ }
+}
+
+/**
+ * A query parameter representing a integer.
+ *
+ * @see: c_base_return_int
+ */
+class c_database_query_parameter_int extends c_base_return_int implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, 0);
+ }
+}
+
+/**
+ * A query parameter representing a float.
+ *
+ * @see: c_base_return_float
+ */
+class c_database_query_parameter_float extends c_base_return_value implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, 0.0);
+ }
+}
+
+/**
+ * A query parameter representing a json array, stored in this object as an array.
+ *
+ * @see: c_base_return_array
+ */
+class c_database_query_parameter_json extends c_base_return_array implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, []);
+ }
+
+ /**
+ * Assign the value.
+ *
+ * @param array $value
+ * Any value so long as it is an array.
+ * NULL is not allowed.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ */
+ public function set_value($value) {
+ if (!is_array($value)) {
+ return FALSE;
+ }
+
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($value as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $value;
+ return TRUE;
+ }
+
+ /**
+ * Assign the value at a specific index in the array.
+ *
+ * @param i_base_query_parameter $value
+ * Any i_base_query_parameter implementation to be assigned at the specified position in the array.
+ * @param int|string $key
+ * A key to assign a specific value to.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if value is not of type i_base_query_parameter.
+ */
+ public function set_value_at($value, $key) {
+ if (!($value instanceof i_base_query_parameter)) {
+ return FALSE;
+ }
+
+ return parent::set_value_at($value, $key);
+ }
+
+ /**
+ * Append the value at the end of the array.
+ *
+ * @param i_base_query_parameter $value
+ * Any i_base_query_parameter to be appended in the array.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if value is not of type i_base_query_parameter.
+ */
+ public function set_value_append($value) {
+ if (!($value instanceof i_base_query_parameter)) {
+ return FALSE;
+ }
+
+ return parent::set_value_append($value);
+ }
+
+ /**
+ * Assigns the array from a serialized array string.
+ *
+ * @param string $serialized
+ * A serialized string to convert to an array.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * if converted string does not produce an array, FALSE is returned and value is set to an empty array.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ *
+ * @see: unserialize()
+ */
+ public function set_value_serialized($serialized) {
+ if (!is_string($serialized)) {
+ return FALSE;
+ }
+
+ $unserialized = unserialize($serialized);
+ if (is_array($unserialized)) {
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($unserialized as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $unserialized;
+ unset($unserialized);
+
+ return TRUE;
+ }
+ unset($unserialized);
+
+ $this->value = [];
+ return FALSE;
+ }
+
+ /**
+ * Returns the data as a json-serialized array string.
+ *
+ * @param string $jsonized
+ * A jsonized string to convert to an array.
+ * @param bool $associative
+ * (optional) When TRUE array is return as an associative array.
+ * @param int $options
+ * (optional) bitmask of json constants.
+ * @param int $depth
+ * (optional) Maximum array depth.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * if converted string does not produce an array, FALSE is returned and value is set to an empty array.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ *
+ * @see: json_decode()
+ */
+ public function set_value_jsonized($jsonized, $associative = TRUE, $options = 0, $depth = 512) {
+ if (!is_string($jsonized)) {
+ return FALSE;
+ }
+
+ if (!is_bool($associative)) {
+ $associative = TRUE;
+ }
+
+ if (!is_int($options)) {
+ $options = 0;
+ }
+
+ if (!is_int($depth) || $depth < 1) {
+ $depth = 512;
+ }
+
+ $decoded = json_decode($jsonized, $associative, $options, $depth);
+ if (is_array($decoded)) {
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($unserialized as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $decoded;
+ unset($decoded);
+
+ return TRUE;
+ }
+ unset($decoded);
+
+ $this->value = [];
+ return FALSE;
+ }
+}
+
+/**
+ * A query parameter representing an array of query parameters, stored in this object as an array.
+ *
+ * All array values must be an implementation of type i_database_query_parameter.
+ *
+ * @see: c_base_return_array
+ */
+class c_database_query_parameter_set extends c_base_return_array implements i_database_query_parameter {
+
+ /**
+ * @see: t_base_return_value::p_s_new()
+ */
+ public static function s_new($value) {
+ return self::p_s_new($value, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value::p_s_value()
+ */
+ public static function s_value($return) {
+ return self::p_s_value($return, __CLASS__);
+ }
+
+ /**
+ * @see: t_base_return_value_exact::p_s_value_exact()
+ */
+ public static function s_value_exact($return) {
+ return self::p_s_value_exact($return, __CLASS__, []);
+ }
+
+ /**
+ * Assign the value.
+ *
+ * @param array $value
+ * Any value so long as it is an array.
+ * NULL is not allowed.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ */
+ public function set_value($value) {
+ if (!is_array($value)) {
+ return FALSE;
+ }
+
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($value as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $value;
+ return TRUE;
+ }
+
+ /**
+ * Assign the value at a specific index in the array.
+ *
+ * @param i_base_query_parameter $value
+ * Any i_base_query_parameter implementation to be assigned at the specified position in the array.
+ * @param int|string $key
+ * A key to assign a specific value to.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if value is not of type i_base_query_parameter.
+ */
+ public function set_value_at($value, $key) {
+ if (!($value instanceof i_base_query_parameter)) {
+ return FALSE;
+ }
+
+ return parent::set_value_at($value, $key);
+ }
+
+ /**
+ * Append the value at the end of the array.
+ *
+ * @param i_base_query_parameter $value
+ * Any i_base_query_parameter to be appended in the array.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * FALSE is returned if value is not of type i_base_query_parameter.
+ */
+ public function set_value_append($value) {
+ if (!($value instanceof i_base_query_parameter)) {
+ return FALSE;
+ }
+
+ return parent::set_value_append($value);
+ }
+
+ /**
+ * Assigns the array from a serialized array string.
+ *
+ * @param string $serialized
+ * A serialized string to convert to an array.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * if converted string does not produce an array, FALSE is returned and value is set to an empty array.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ *
+ * @see: unserialize()
+ */
+ public function set_value_serialized($serialized) {
+ if (!is_string($serialized)) {
+ return FALSE;
+ }
+
+ $unserialized = unserialize($serialized);
+ if (is_array($unserialized)) {
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($unserialized as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $unserialized;
+ unset($unserialized);
+
+ return TRUE;
+ }
+ unset($unserialized);
+
+ $this->value = [];
+ return FALSE;
+ }
+
+ /**
+ * Returns the data as a json-serialized array string.
+ *
+ * @param string $jsonized
+ * A jsonized string to convert to an array.
+ * @param bool $associative
+ * (optional) When TRUE array is return as an associative array.
+ * @param int $options
+ * (optional) bitmask of json constants.
+ * @param int $depth
+ * (optional) Maximum array depth.
+ *
+ * @return bool
+ * TRUE on success, FALSE otherwise.
+ * if converted string does not produce an array, FALSE is returned and value is set to an empty array.
+ * FALSE is returned if any value in the array is not of type i_base_query_parameter.
+ *
+ * @see: json_decode()
+ */
+ public function set_value_jsonized($jsonized, $associative = TRUE, $options = 0, $depth = 512) {
+ if (!is_string($jsonized)) {
+ return FALSE;
+ }
+
+ if (!is_bool($associative)) {
+ $associative = TRUE;
+ }
+
+ if (!is_int($options)) {
+ $options = 0;
+ }
+
+ if (!is_int($depth) || $depth < 1) {
+ $depth = 512;
+ }
+
+ $decoded = json_decode($jsonized, $associative, $options, $depth);
+ if (is_array($decoded)) {
+ // guarantee that only i_base_query_parameter are assigend in the array.
+ foreach ($unserialized as $v) {
+ if (!($v instanceof i_base_query_parameter)) {
+ unset($v);
+ return FALSE;
+ }
+ }
+ unset($v);
+
+ $this->value = $decoded;
+ unset($decoded);
+
+ return TRUE;
+ }
+ unset($decoded);
+
+ $this->value = [];
+ return FALSE;
+ }
+}
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ROLLBACK query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
require_once('common/database/classes/database_query.php');
-require_once('common/base/traits/base_query.php');
+require_once('common/database/traits/database_query.php');
/**
* The class for building and returning a Postgresql ALTER COALATION query string.
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with database actions.
+ */
+class e_database_action {
+ public const NONE = 0;
+ public const ADD = 1;
+ public const DISABLE = 2;
+ public const DROP = 3;
+ public const DROP_CONSTRAINT = 4;
+ public const DROP_DEFAULT = 5;
+ public const ENABLE = 6;
+ public const GRANT = 7;
+ public const OWNER_TO = 8;
+ public const RENAME_CONSTRAINT = 9;
+ public const RENAME_TO = 10;
+ public const SET = 11;
+ public const SET_DEFAULT = 12;
+ public const SET_SCHEMA = 13;
+ public const VALIDATE_CONSTRAINT = 14;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with GROUP BY, ORDER BY, and related queries.
+ */
+class e_database_direction {
+ public const NONE = 0;
+ public const ASCEND = 1;
+ public const DESCEND = 2;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with database options.
+ */
+class e_database_on {
+ public const NONE = 0;
+ public const TABLES_TO = 1;
+ public const SEQUENCES = 2;
+ public const FUNCTIONS = 3;
+ public const TYPES = 4;
+ public const SCHEMAS = 5;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with database options.
+ */
+class e_database_option {
+ public const NONE = 0;
+ public const CASCADE = 1;
+ public const RESTRICT = 2;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with database privileges.
+ */
+class e_database_privilege {
+ public const NONE = 0;
+ public const ALL = 1;
+ public const CREATE = 2;
+ public const DELETE = 3;
+ public const EXECUTE = 4;
+ public const INSERT = 5;
+ public const REFERENCES = 6;
+ public const SELECT = 7;
+ public const TRIGGER = 8;
+ public const TRUNCATE = 9;
+ public const UPDATE = 10;
+ public const USAGE = 11;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with database property.
+ */
+class e_database_property {
+ public const NONE = 0;
+ public const ALWAYS = 1;
+ public const IF_EXISTS = 2;
+ public const NOT_VALID = 3;
+ public const REPLICA = 4;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with RESET and related queries.
+ */
+class e_database_reset {
+ public const NONE = 0;
+ public const ALL = 1;
+ public const PARAMETER = 2;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with SET and related queries.
+ */
+class e_database_set {
+ public const NONE = 0;
+ public const TO = 1;
+ public const EQUAL = 2;
+ public const FROM_CURRENT = 3;
+}
--- /dev/null
+<?php
+/**
+ * @file
+ * Provides enumeration classes for managing codes used for generating specific Postgesql Queries.
+ *
+ * @see: https://www.postgresql.org/docs/current/static/sql-commands.html
+ */
+namespace n_koopa;
+
+/**
+ * Codes associated with postgresql user/session information.
+ */
+class e_database_user {
+ public const NONE = 0;
+ public const CURRENT = 1;
+ public const SESSION = 2;
+ public const NAME = 3;
+}
}
/**
- * Provide property support for an SQL query.
+ * Provide action property support for an SQL query.
*
- * A single property that is associated with a particular class-specific property such as SELECT, INSERT, etc...
+ * A single property that is associated with a particular action.
*/
trait t_database_action_property {
protected $query_action_property;
* Assigns this query action property.
*
* @param int|null $property
- * Whether or not to use a property associated with a particular class-specific action such as SELECT, INSERT, etc...
+ * Whether or not to use a action property associated.
* Set to NULL to disable.
*
* @return c_base_return_status
* NULL is returned if undefined.
* FALSE with error bit set is returned on error.
*/
- protected function get_action_property() {
+ protected function get_query_action_property() {
if (is_null($this->query_action_property)) {
return new c_base_return_null();
}
protected $query_group_by;
/**
- * Set the RENAME TO settings.
+ * Set the GROUP BY settings.
*
* @param string|null $group_by
* The name to rename to.
}
/**
- * Get the currently assigned name to rename to.
+ * Get the currently assigned name to group by.
*
* @return c_base_return_string|c_base_return_null
* A name on success.
- * NULL is returned if not set (rename to is not to be used).
+ * NULL is returned if not set (group by is not to be used).
* NULL with the error bit set is returned on error.
*/
public function get_query_group_by() {
}
/**
- * Get the currently assigned name to rename to.
+ * Get the currently assigned name to order by.
*
* @return c_base_return_string|c_base_return_null
* A name on success.
- * NULL is returned if not set (rename to is not to be used).
+ * NULL is returned if not set (order by to is not to be used).
* NULL with the error bit set is returned on error.
*/
public function get_query_order_by() {
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_owner_to.php');
+require_once('common/database/enumerations/database_user.php');
+
require_once('common/database/classes/database_string.php');
/**
*
* @param int|null $owner_to
* The owner type to assign.
- * Should be one of: c_database_code_user.
+ * Should be one of: e_database_user.
* Set to NULL to disable.
* @param string|null $user_name
* (optional) When non-NULL this is the database user name.
return c_base_return_error::s_false($error);
}
- if ($owner_type == c_database_code_user::USER_NAME) {
+ if ($owner_type == e_database_user::NAME) {
if (!is_null($user_name) && !is_string($user_name)) {
$error = c_base_error::s_log(NULL, ['arguments' => [':{argument_name}' => 'user_name', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_ARGUMENT);
return c_base_return_error::s_false($error);
$this->query_owner_to = $owner_to;
$this->query_owner_to_user_name = NULL;
- if ($owner_type == c_database_code_user::USER_CURRENT) {
+ if ($owner_type == e_database_user::CURRENT) {
$this->query_owner_to_user_name = c_database_string::USER_CURRENT;
}
- else if ($owner_type == c_database_code_user::USER_SESSION) {
+ else if ($owner_type == e_database_user::SESSION) {
$this->query_owner_to_user_name = c_database_string::USER_SESSION;
}
* Get the currently assigned sql owner to.
*
* @return c_base_return_int|c_base_return_null
- * A (c_database_code_user) code representing the owner on success.
+ * A (e_database_user) code representing the owner on success.
* NULL without error bit set is returned if not assigned.
* NULL with the error bit set is returned on error.
*/
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_reset.php');
+
require_once('common/database/classes/database_code.php');
/**
*
* @param int|null $reset
* The reset code to assign.
- * Should be one of: c_database_code_reset.
+ * Should be one of: e_database_reset.
* Set to NULL to disable.
* @param string|null $parameter
* (optional) When non-NULL this is the configuration parameter.
return c_base_return_error::s_false($error);
}
- if ($reset == c_database_code_reset::PARAMETER) {
+ if ($reset == e_database_reset::PARAMETER) {
if (!is_null($parameter) || !is_string($parameter)) {
$error = c_base_error::s_log(NULL, ['arguments' => [':{argument_name}' => 'parameter', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_ARGUMENT);
return c_base_return_error::s_false($error);
$this->query_reset_parameter = $parameter;
return new c_base_return_true();
}
- else if ($reset == c_database_code_reset::ALL) {
+ else if ($reset == e_database_reset::ALL) {
$this->query_reset = $reset;
$this->query_reset_parameter = NULL;
return new c_base_return_true();
require_once('common/base/classes/base_error.php');
require_once('common/base/classes/base_return.php');
+require_once('common/database/enumerations/database_set.php');
+
require_once('common/database/classes/database_code.php');
/**
return c_base_return_error::s_false($error);
}
- if ($set == c_database_code_set::TO || $set == c_database_code_set::EQUAL) {
+ if ($set == e_database_set::TO || $set == e_database_set::EQUAL) {
if (!is_null($parameter) || !is_string($parameter)) {
$error = c_base_error::s_log(NULL, ['arguments' => [':{argument_name}' => 'parameter', ':{function_name}' => __CLASS__ . '->' . __FUNCTION__]], i_base_error_messages::INVALID_ARGUMENT);
return c_base_return_error::s_false($error);
$this->query_set_value = $value;
return new c_base_return_true();
}
- else if ($set == c_database_code_set::FROM_CURRENT) {
+ else if ($set == e_database_set::FROM_CURRENT) {
$this->query_set = $set;
$this->query_set_parameter = NULL;
$this->query_set_value = NULL;
$query_parameters[8] = $response_code;
if ($log_type === c_base_log::TYPE_CONNECT) {
- $query_parameters[0] = "Logging in to the system.";
+ $query_parameters[0] = 'Logging in to the system.';
$query_parameters[1] = c_base_log::TYPE_SESSION;
$query_parameters[2] = c_base_log::TYPE_CONNECT;
$query_parameters[3] = c_base_error::SEVERITY_INFORMATIONAL;
}
}
else if ($log_type === c_base_log::TYPE_DISCONNECT) {
- $query_parameters[0] = "Logging out of the system.";
+ $query_parameters[0] = 'Logging out of the system.';
$query_parameters[1] = c_base_log::TYPE_SESSION;
$query_parameters[2] = c_base_log::TYPE_DISCONNECT;
$query_parameters[3] = c_base_error::SEVERITY_INFORMATIONAL;
$query_parameters[9] = NULL;
}
else if ($log_type === c_base_log::TYPE_CREATE) {
- $query_parameters[0] = "Created the user account.";
+ $query_parameters[0] = 'Created the user account.';
$query_parameters[1] = c_base_log::TYPE_CREATE;
$query_parameters[2] = c_base_log::TYPE_NONE;
$query_parameters[3] = c_base_error::SEVERITY_INFORMATIONAL;
$user_name = $data['user_name'];
}
- $query_parameters[0] = "Failed to login as the user ':{user_name}'.";
+ $query_parameters[0] = 'Failed to login as the user \':{user_name}\'.';
$query_parameters[1] = c_base_log::TYPE_CONNECT;
$query_parameters[2] = c_base_log::TYPE_FAILURE;
$query_parameters[3] = c_base_error::SEVERITY_NOTICE;