2003-04-17 01:29:45 +00:00
|
|
|
/*
|
2003-06-14 18:16:47 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2003-06-14 18:16:47 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2005-08-03 14:08:58 +00:00
|
|
|
| Copyright (c) 1997-2005 The PHP Group |
|
2003-06-14 18:16:47 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Wez Furlong <wez@thebrainroom.com> |
|
|
|
|
| Tal Peer <tal@php.net> |
|
|
|
|
| Marcus Boerger <helly@php.net> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
$Id$
|
2003-04-17 01:29:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHP_SQLITE_H
|
|
|
|
#define PHP_SQLITE_H
|
|
|
|
|
|
|
|
extern zend_module_entry sqlite_module_entry;
|
|
|
|
#define phpext_sqlite_ptr &sqlite_module_entry
|
|
|
|
|
|
|
|
#ifdef PHP_WIN32
|
|
|
|
#define PHP_SQLITE_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define PHP_SQLITE_API
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ZTS
|
|
|
|
#include "TSRM.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
PHP_MINIT_FUNCTION(sqlite);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(sqlite);
|
|
|
|
PHP_RINIT_FUNCTION(sqlite);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(sqlite);
|
|
|
|
PHP_MINFO_FUNCTION(sqlite);
|
|
|
|
|
|
|
|
PHP_FUNCTION(sqlite_open);
|
2003-04-18 16:30:16 +00:00
|
|
|
PHP_FUNCTION(sqlite_popen);
|
2003-04-17 01:29:45 +00:00
|
|
|
PHP_FUNCTION(sqlite_close);
|
|
|
|
PHP_FUNCTION(sqlite_query);
|
2004-05-13 14:19:10 +00:00
|
|
|
PHP_FUNCTION(sqlite_exec);
|
2003-04-18 12:22:43 +00:00
|
|
|
PHP_FUNCTION(sqlite_unbuffered_query);
|
2003-06-09 23:15:29 +00:00
|
|
|
PHP_FUNCTION(sqlite_array_query);
|
2003-06-25 16:59:24 +00:00
|
|
|
PHP_FUNCTION(sqlite_single_query);
|
2003-06-09 23:15:29 +00:00
|
|
|
|
2003-04-17 01:29:45 +00:00
|
|
|
PHP_FUNCTION(sqlite_fetch_array);
|
2003-08-28 23:19:51 +00:00
|
|
|
PHP_FUNCTION(sqlite_fetch_object);
|
2003-06-26 19:26:26 +00:00
|
|
|
PHP_FUNCTION(sqlite_fetch_single);
|
2003-06-06 19:01:38 +00:00
|
|
|
PHP_FUNCTION(sqlite_fetch_all);
|
2003-05-02 22:09:54 +00:00
|
|
|
PHP_FUNCTION(sqlite_current);
|
2003-05-03 12:51:13 +00:00
|
|
|
PHP_FUNCTION(sqlite_column);
|
2003-04-17 01:29:45 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(sqlite_num_rows);
|
|
|
|
PHP_FUNCTION(sqlite_num_fields);
|
|
|
|
PHP_FUNCTION(sqlite_field_name);
|
|
|
|
PHP_FUNCTION(sqlite_seek);
|
2003-05-02 22:09:54 +00:00
|
|
|
PHP_FUNCTION(sqlite_rewind);
|
|
|
|
PHP_FUNCTION(sqlite_next);
|
2003-07-13 09:38:33 +00:00
|
|
|
PHP_FUNCTION(sqlite_prev);
|
2005-01-10 07:13:56 +00:00
|
|
|
PHP_FUNCTION(sqlite_key);
|
2003-07-13 09:38:33 +00:00
|
|
|
|
2004-03-08 18:05:41 +00:00
|
|
|
PHP_FUNCTION(sqlite_valid);
|
2003-07-13 09:38:33 +00:00
|
|
|
PHP_FUNCTION(sqlite_has_prev);
|
2003-04-17 01:29:45 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(sqlite_libversion);
|
|
|
|
PHP_FUNCTION(sqlite_libencoding);
|
|
|
|
|
|
|
|
PHP_FUNCTION(sqlite_changes);
|
|
|
|
PHP_FUNCTION(sqlite_last_insert_rowid);
|
|
|
|
|
2003-04-17 02:20:26 +00:00
|
|
|
PHP_FUNCTION(sqlite_escape_string);
|
|
|
|
|
2003-04-17 16:57:46 +00:00
|
|
|
PHP_FUNCTION(sqlite_busy_timeout);
|
|
|
|
|
2003-04-17 20:08:00 +00:00
|
|
|
PHP_FUNCTION(sqlite_last_error);
|
|
|
|
PHP_FUNCTION(sqlite_error_string);
|
|
|
|
|
2003-04-20 13:08:22 +00:00
|
|
|
PHP_FUNCTION(sqlite_create_aggregate);
|
2003-04-20 13:31:36 +00:00
|
|
|
PHP_FUNCTION(sqlite_create_function);
|
2003-06-21 12:29:32 +00:00
|
|
|
PHP_FUNCTION(sqlite_udf_decode_binary);
|
|
|
|
PHP_FUNCTION(sqlite_udf_encode_binary);
|
2003-04-20 13:08:22 +00:00
|
|
|
|
2003-06-22 17:19:46 +00:00
|
|
|
PHP_FUNCTION(sqlite_factory);
|
|
|
|
|
2003-12-18 21:28:00 +00:00
|
|
|
PHP_FUNCTION(sqlite_fetch_column_types);
|
|
|
|
|
2003-04-22 00:08:48 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(sqlite)
|
2003-06-22 17:19:46 +00:00
|
|
|
int assoc_case;
|
2003-04-22 00:08:48 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(sqlite)
|
|
|
|
|
2003-04-17 01:29:45 +00:00
|
|
|
#ifdef ZTS
|
|
|
|
#define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v)
|
|
|
|
#else
|
|
|
|
#define SQLITE_G(v) (sqlite_globals.v)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*/
|