0.0.2
0.0.2.0
MIT
The Development Requires
by Eric Stern
dev-master
9999999-dev
MIT
The Development Requires
by Eric Stern
0.0.1
0.0.1.0
MIT
The Development Requires
by Eric Stern
Wallogit.com
2017 © Pedro Peláez
A very simple PDO wrapper, (*1)
Detailed documentation is coming Soon™., (*2)
Firehed\SimpleDb\SimpleDbpublic function __construct(PDO $pdo)Constructor, (*3)
public function select(string $query, array $params = []): GeneratorPass in any SELECT query, with colon-prefixed :placeholders.
For each of those placeholders, ensure $params has a matching key, including the colon.
The value can be any scalar type, or an array of scalar types which will automatically be expanded when matched with an IN() clause.
Automatic IN support was the primary motivation behind this library., (*4)
public function selectOne(string $query, array $params = []): arraySame as above, but you get either the first row directly or a NoResultError will be thrown.
Nice for primary/unique key SELECTs., (*5)
MIT
MIT
MIT