Documentation

MySQL extends AbstractDatabase
in package
implements DatabaseInterface

A MySQL Data Object

Interfaces, Classes and Traits

DatabaseInterface

Table of Contents

$conf  : mixed
$db_name  : mixed
$debug  : bool
$dsn  : mixed
$error_message  : mixed
Base error message, this belongs in com_think's configuration class
$host  : mixed
$password  : mixed
$port  : mixed
$user_name  : mixed
$DataSourceName  : mixed
__construct()  : mixed
Parses Config info and sets some default options
DataSourceName()  : string
returns the Data Source Name of this Data Object
errorMessage()  : string
Returns an error message that should be actionable. The information in the error message comes from the database
run()  : mixed
Compresses a basic query down into one function
parseConfig()  : void
Breaks down the \TiqConfig Object
parseException()  : array<string|int, mixed>
Initial version of hint parsing code.

Properties

$error_message

Base error message, this belongs in com_think's configuration class

protected mixed $error_message = 'An issue occurred, please contact ThinkIQ for Support and enable debugging'
Tags
since

version 3.3.0

$DataSourceName

private mixed $DataSourceName = "mysql"

Methods

__construct()

Parses Config info and sets some default options

public __construct(TiqConfig $conf[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$conf : TiqConfig

Contains sensitive configuration data

$options : array<string|int, mixed> = []

PDO class attributes

Return values
mixed

DataSourceName()

returns the Data Source Name of this Data Object

public DataSourceName() : string
Return values
string

errorMessage()

Returns an error message that should be actionable. The information in the error message comes from the database

public errorMessage(PDOException $exception) : string
Parameters
$exception : PDOException
Tags
since

version 3.3.0

Return values
string

run()

Compresses a basic query down into one function

public run(string $sql[, mixed $args = NULL ]) : mixed
Parameters
$sql : string

sql query

$args : mixed = NULL

arguments to be used in the sql string

Return values
mixed

parseConfig()

Breaks down the \TiqConfig Object

protected parseConfig(TiqConfig $conf) : void
Parameters
$conf : TiqConfig

Contains sensitive configuration data

Return values
void

parseException()

Initial version of hint parsing code.

private parseException(PDOException $e) : array<string|int, mixed>

TODO: Make unit tests and make this more solid!

Parameters
$e : PDOException
Return values
array<string|int, mixed>

Search results