diff options
author | Wez Furlong <wez@php.net> | 2003-04-18 16:30:16 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-04-18 16:30:16 +0000 |
commit | 8f30d3e54506dcf1540524c2abc9990b9ad17a56 (patch) | |
tree | a613ad21d4b5bb237113a96d676ac11b2221c775 /ext/sqlite/php_sqlite.h | |
parent | d28e06d3b216ea079e9cec53df0746b95f96c0b9 (diff) | |
download | php-git-8f30d3e54506dcf1540524c2abc9990b9ad17a56.tar.gz |
Implement sqlite_popen(), which opens persistent connections to an sqlite
database file. (This saves the cost of sqlite reading/parsing the indices).
Persistent db connections have any pending transactions rolled back at request
shutdown time. (non-persistent connections are automatically rolled back when
they are closed).
Enhance sqlite_query() and sqlite_unbuffered_query() to use the C api
sqlite_exec() when the PHP script does not use the return value. This avoids
the extra work and memory allocation for holding result sets when they are not
needed.
Diffstat (limited to 'ext/sqlite/php_sqlite.h')
-rw-r--r-- | ext/sqlite/php_sqlite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/sqlite/php_sqlite.h b/ext/sqlite/php_sqlite.h index 87a33228c6..3b0dac9e57 100644 --- a/ext/sqlite/php_sqlite.h +++ b/ext/sqlite/php_sqlite.h @@ -41,6 +41,7 @@ PHP_RSHUTDOWN_FUNCTION(sqlite); PHP_MINFO_FUNCTION(sqlite); PHP_FUNCTION(sqlite_open); +PHP_FUNCTION(sqlite_popen); PHP_FUNCTION(sqlite_close); PHP_FUNCTION(sqlite_query); PHP_FUNCTION(sqlite_unbuffered_query); |