zozlak / query-part
Container class for an SQL query and its parameters
Installs: 4 682
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- psr/log: >=1
Requires (Dev)
README
QueryPart
A simple container for passing an SQL query along with its parameters (and optionally a list of columns).
Installation
composer require zozlak/query-part
Usage
$qp = new zozlak\queryPart\QueryPart("SELECT foo FROM bar WHERE baz = ?", ['bazValue'], ['foo']); print_r($qp); echo $qp . "\n";