-
Notifications
You must be signed in to change notification settings - Fork 1
SYSTEM DB ConnectionMYS
Ulf Gebhardt edited this page Jul 25, 2017
·
3 revisions
MYSQL Connection Class provided by System to connect to MYSQL Database.
- Class name: ConnectionMYS
- Namespace: SYSTEM\DB
- Parent class: SYSTEM\DB\ConnectionAbstr
private mixed $connection = NULL
ressource Variable to store then open Connection
- Visibility: private
mixed SYSTEM\DB\ConnectionAbstr::__construct(\SYSTEM\DB\DBINFO $dbinfo)
Connect to the DB upon Construction.
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
- $dbinfo SYSTEM\DB\DBINFO - <p>Database Information Object</p>
mixed SYSTEM\DB\ConnectionAbstr::__destruct()
Destruct the Database Connection upon Destruction.
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
boolean SYSTEM\DB\ConnectionAbstr::close()
Close the Database Connection.
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
\SYSTEM\DB\Result SYSTEM\DB\ConnectionAbstr::prepare(string $stmtName, string $stmt, array $values, string $types)
Query the Connection using Prepare Statement
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
- $stmtName string - <p>Name of the Statement - espec for PostgreSQL important</p>
- $stmt string - <p>SQL string of the Statement</p>
- $values array - <p>Array of Prepare Values</p>
- $types string - <p>types sql prepare string</p>
\SYSTEM\DB\Result SYSTEM\DB\ConnectionAbstr::query(string $query)
Query the Connection using normal Query Statement
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
- $query string - <p>SQL string of the Statement</p>
\SYSTEM\DB\Result SYSTEM\DB\ConnectionAbstr::exec(string $query)
Exec Query on Database
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
- $query string - <p>SQL string of the Statement</p>
boolean SYSTEM\DB\ConnectionAbstr::commit()
Commit a Transaction on the Database Connection
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
boolean SYSTEM\DB\ConnectionAbstr::trans()
Open a Transaction on the Database Connection
- Visibility: public
- This method is abstract.
- This method is defined by SYSTEM\DB\ConnectionAbstr
string SYSTEM\DB\ConnectionAbstr::getPrepareValueType(string $value)
Helperfunction to convert Prepared Values to SQL Type identifiers
- Visibility: protected
- This method is static.
- This method is defined by SYSTEM\DB\ConnectionAbstr
- $value string - <p>Value to be examined regarding Type</p>