PDOConnection
in package
Table of Contents
- $dbm : mixed
- $dbo : mixed
- __construct() : mixed
- __destruct() : mixed
- runSql() : int
- Executa sql e retorna o total de linhas afetadas - ideal para insert, delete e update
- select() : array<string|int, mixed>
- Executa sql de select
- SetAlocConnetion() : mixed
- Prepara a conexão com a base de alocação
- setConnection() : mixed
- Realiza a conexão a base de dados
- SetStoreConecction() : mixed
- Prepara a conexão com a base da loja virtual
Properties
$dbm
public
mixed
$dbm
$dbo
public
mixed
$dbo
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —runSql()
Executa sql e retorna o total de linhas afetadas - ideal para insert, delete e update
public
runSql(mixed $sql) : int
Parameters
- $sql : mixed
Return values
int —select()
Executa sql de select
public
select(mixed $sql) : array<string|int, mixed>
Parameters
- $sql : mixed
Return values
array<string|int, mixed> —SetAlocConnetion()
Prepara a conexão com a base de alocação
public
SetAlocConnetion() : mixed
Return values
mixed —setConnection()
Realiza a conexão a base de dados
public
setConnection(mixed $server, mixed $user, mixed $pass, mixed $db[, mixed $port = null ]) : mixed
Parameters
- $server : mixed
- $user : mixed
- $pass : mixed
- $db : mixed
- $port : mixed = null
Return values
mixed —SetStoreConecction()
Prepara a conexão com a base da loja virtual
public
SetStoreConecction() : mixed