Navigation
Learn About
Developing With
Ingres Talk
Information
Toolbox
Views
PHP/Projects/Unbuffered Query
From Ingres Community Wiki
< PHP | Projects(Redirected from PHP Unbuffered Query)
Jump to: navigation, search
Contents |
[edit]
Introduction
Unbuffered query execution allows a developer to execute a query without its rows being buffered. Typically used for INSERT/UPDATE/DELETE statements where there is no row-set to return. It can also be used with SELECT statements, however only a single statement can be open at a time. This function is similar to the way the Ingres PHP driver use to work prior having support for multiple-result sets.
[edit]
Feature ideas
[edit]
Batch Parameters
One possible feature is the ability to supply a batch of parameters (nested array in PHP terms) for submission. Which would convert this:
$params = array(1,'Grant', 'Croker'); $rc = ingres_unbuffered_query($link, $query, $params); $params = array(2,'Matt', 'Berg'); $rc = ingres_unbuffered_query($link, $query, $params);
into
//Generate a nested array $params[] = array(1,'Grant', 'Croker'); $params[] = array(2,'Matt', 'Berg'); $params[] = array(3,'The', 'Librarian'); $params[] = array(4,'Ponder', 'Stibbons'); $rc = ingres_unbuffered_query($link, $query, $params);
or could take a set of values returned by ingres_fetch_row() or ingres_fetch_array().
[edit]
Project Profile
| Admins | Grant Croker |
| Sponsor | Grant Croker |
| Developers | |
| Development Status | Discussion |
| Intended Audience | Developers |
| License | PHP License 3.0 |
| Operating System(s) | 32-bit MS Windows (NT/2000/XP/Vista), Solaris, Linux, HP-UX, IBM AIX |
| Programming Language(s) | Primarily in C, with some PHP for writing tests |
| Topic(s) | Ingres, PHP |
| Registered | 15-Jan-2009 |
Retrieved from "http://community.actian.com/wiki/PHP/Projects/Unbuffered_Query"

