zozlak/query-part

Container class for an SQL query and its parameters

2.1.2 2023-01-02 10:23 UTC

This package is auto-updated.

Last update: 2024-03-01 00:11:13 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";