\Puyo\DbDbal

PDO をさらに抽象化したもの

Summary

Methods
Properties
Constants
__construct()
getPdo()
query()
queryOne()
queryAsStmt()
execute()
begin()
rollback()
commit()
close()
No public properties found
No constants found
prepare()
$pdo
N/A
No private methods found
No private properties found
N/A

Properties

$pdo

$pdo : \PDO

Type

\PDO

Methods

__construct()

__construct(\PDO  $pdo) 

Parameters

\PDO $pdo

getPdo()

getPdo() 

query()

query(string  $sql, array<mixed,string>|array<mixed,integer>  $values = array()) : array

Parameters

string $sql
array<mixed,string>|array<mixed,integer> $values

Returns

array —

複数行

queryOne()

queryOne(string  $sql, array<mixed,string>|array<mixed,integer>  $values = array()) : array|null

Parameters

string $sql
array<mixed,string>|array<mixed,integer> $values

Returns

array|null —

単一行

queryAsStmt()

queryAsStmt(string  $sql, array<mixed,string>|array<mixed,integer>  $values = array()) : \PDOStatement

Parameters

string $sql
array<mixed,string>|array<mixed,integer> $values

Returns

\PDOStatement

execute()

execute(string  $sql, array<mixed,string>|array<mixed,integer>  $values = array()) : integer

Parameters

string $sql
array<mixed,string>|array<mixed,integer> $values

Returns

integer —

更新件数

begin()

begin() 

rollback()

rollback() 

commit()

commit() 

close()

close() 

prepare()

prepare(string  $sql, array<mixed,string>|array<mixed,integer>  $values = array()) : \PDOStatement

Parameters

string $sql
array<mixed,string>|array<mixed,integer> $values

Returns

\PDOStatement