libAllure
 
Loading...
Searching...
No Matches
libAllure\Database Class Reference
+ Inheritance diagram for libAllure\Database:

Public Member Functions

 __construct ($dsn, $username, $password)
 
 escape ($s)
 
 fetchById ($table, $id)
 
 prepareSelectById ($table, $id,... $fields)
 

Public Attributes

 $queryCount = 0
 
const DB_MYSQL_ERR_CONSTRAINT = 23000
 
const FM_ASSOC = \PDO::FETCH_ASSOC
 
const FM_OBJECT = \PDO::FETCH_OBJ
 
const FM_ORDER = \PDO::FETCH_NUM
 

Constructor & Destructor Documentation

◆ __construct()

libAllure\Database::__construct (   $dsn,
  $username,
  $password 
)
Exceptions

PDOException if it cannot connect