Wez Furlong
eb0cd48d60
Add rough cut at fetching meta data.
2004-09-26 20:45:44 +00:00
Wez Furlong
7937f0a229
Implement persistent connections
...
$dbh->exec --> $dbh->query
2004-09-23 20:07:02 +00:00
Wez Furlong
34d10931e2
Add "no permission" error code.
...
Add a uri: psuedo driver; it specifies the name of a resource that contains,
as its first line, the actual data source to connect to.
The resource can be a local file, or it can be any resource for which PHP
has a wrapper.
// loads connection data from the file "myapp"
$d = new PDO('uri:myapp');
// lets say that public.db.com has a read-only db open for the public
// their connection data is also published via the web:
// (not so great to resolve this on each request though...)
$d = new PDO('uri:http://public.db.com/pdo-connection-data ');
2004-09-19 16:58:13 +00:00
George Schlossnagle
c7b7791029
allow pdo to be functionally inherited from.
2004-07-26 07:42:46 +00:00
Wez Furlong
0d002664fb
Implement empty-string-to-null conversion option for oracle compat.
...
This can be enabled using:
$dbh->setAttribute(PDO_ATTR_ORACLE_NULLS, true);
2004-07-19 09:35:36 +00:00
George Schlossnagle
9e187415f9
fix for inheritability
2004-06-23 18:06:00 +00:00
Ard Biesheuvel
e48d127244
Revert (at Wez's request)
2004-06-15 10:06:41 +00:00
Ard Biesheuvel
50ac5db2b4
Added double param type
...
Added param struct initialiser
Reversed param parsing order (long <=> string)
2004-06-12 02:35:34 +00:00
Wez Furlong
d2a8d5a80f
get/set attributes for statements
2004-05-25 18:32:48 +00:00
Wez Furlong
7a87af3321
Some definitions for cursors.
...
Define a mechanism for driver-specific attributes.
Use a refcount for the stmt structure.
2004-05-25 17:43:24 +00:00
Wez Furlong
ed83c5bee5
Tidy up placeholder flags
2004-05-21 14:09:51 +00:00
Wez Furlong
bf48daa8d5
Version 1 of PDO_FETCH_LAZY
2004-05-21 13:26:58 +00:00
Wez Furlong
f0a001a953
Implement case folding of column names as a portability option.
2004-05-20 22:28:53 +00:00
Wez Furlong
5023a7c61c
Enable setting the different error modes via PDO::setAttribute()
2004-05-20 19:16:49 +00:00
Ilia Alshanetsky
e596466a1f
Added getAttribute() method.
2004-05-20 19:09:35 +00:00
Wez Furlong
e7c72f8455
First cut at a "unified" error handling API. The main thing that is missing
...
currently is a switch in the dbh to indicate what to do with the errors.
2004-05-20 00:05:22 +00:00
Ilia Alshanetsky
676dfcf581
Timeout stuff.
2004-05-19 20:38:25 +00:00
George Schlossnagle
129997216b
exec() now returns row count
2004-05-19 19:27:53 +00:00
Ilia Alshanetsky
074ba3fbc0
Added lastInsertId() method for retrieving last insert id.
...
Made affectedRows() work for MySQL.
Populate error value in MySQL on error.
2004-05-19 17:35:39 +00:00
Wez Furlong
1a91f75193
Add simple error code values and a place to store them
2004-05-19 16:21:43 +00:00
Wez Furlong
fd6b885a19
Revise $dbh->exec().
...
The driver doer() method should populate dbh->affected_rows if it can determine its value.
2004-05-19 13:55:41 +00:00
Wez Furlong
6cd27ff8be
Add $dbh->exec() method.
...
Rename $dbh->beginWork() to $dbh->beginTransaction().
2004-05-19 13:43:07 +00:00
Wez Furlong
4116d9fb0e
Expand the prepare() prototype to accept additional options.
2004-05-19 12:37:31 +00:00
George Schlossnagle
2e4c3ea35f
forgotten off the last commit
2004-05-18 19:30:43 +00:00
George Schlossnagle
a97e1a6646
handle binding/quoting of queries for drivers with emulated prepares
2004-05-18 15:19:31 +00:00
Wez Furlong
c9f736ab6e
Skeleton for emulated prepare()
2004-05-18 08:59:27 +00:00
George Schlossnagle
2e281baab9
we need the source string length for binary safe string handling
2004-05-18 05:00:52 +00:00
George Schlossnagle
fd73439882
include guard
2004-05-17 21:12:30 +00:00
Wez Furlong
79c513db96
Some pedantic fixes for gcc.
2004-05-17 17:00:35 +00:00
Wez Furlong
684be9cf36
Hello PDO.
...
Still more to come. Give it a couple of days before starting to write drivers
for the other databases; a few things might change, so I'd like to coordinate
that, but in a couple of days.
2004-05-17 15:41:51 +00:00