zozlak/query-part

Container class for an SQL query and its parameters

2.2.0 2024-05-03 06:57 UTC

This package is auto-updated.

Last update: 2024-10-03 07:52:01 UTC


README

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";