Searched defs:db (Results 1 - 25 of 45) sorted by relevance

12

/PHP_5_3/ext/pdo_dblib/
H A Ddb.php3 /* assumes that you have the freetds db.lib on windows */
10 $db = new PDO('sybase:', 'pdo', 'pdo'); variable
11 $db->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTION);
12 debug_zval_dump($db);
14 $stmt = $db->prepare('select 10');
29 $db = null; variable
/PHP_5_3/ext/spl/examples/
H A Ddba_dump.php32 $db = new DbaReader($argv[1], $argv[2]); variable
35 $db = new KeyFilter($db, $argv[3]); variable
38 foreach($db as $key => $val) {
/PHP_5_3/ext/sqlite/libsqlite/src/
H A Dattach.c30 sqlite *db; local
36 db = pParse->db;
37 if( db->file_format<4 ){
43 if( db->nDb>=MAX_ATTACHED+2 ){
65 for(i=0; i<db->nDb; i++){
66 if( db->aDb[i].zName && sqliteStrICmp(db->aDb[i].zName, zName)==0 ){
74 if( db->aDb==db
138 sqlite *db; local
192 sqlite *db; local
[all...]
H A Dauth.c74 sqlite *db,
78 db->xAuth = xAuth;
79 db->pAuthArg = pArg;
108 sqlite *db = pParse->db; local
116 if( db->xAuth==0 ) return;
142 assert( pExpr->iDb<db->nDb );
143 zDBase = db->aDb[pExpr->iDb].zName;
144 rc = db->xAuth(db
73 sqlite_set_authorizer( sqlite *db, int (*xAuth)(void*,int,const char*,const char*,const char*,const char*), void *pArg ) argument
174 sqlite *db = pParse->db; local
[all...]
H A Dcopy.c42 sqlite *db = pParse->db; local
51 assert( pTab->iDb<db->nDb );
52 zDb = db->aDb[pTab->iDb].zName;
63 if( db->flags & SQLITE_CountRows ){
92 if( (db->flags & SQLITE_CountRows)!=0 ){
99 if( db->flags & SQLITE_CountRows ){
H A Ddate.c857 void sqliteRegisterDateTimeFunctions(sqlite *db){ argument
874 sqlite_create_function(db, aFuncs[i].zName,
877 sqlite_function_type(db, aFuncs[i].zName, aFuncs[i].dataType);
H A Ddelete.c69 sqlite *db; /* Main database structure */ local
83 db = pParse->db;
102 assert( pTab->iDb<db->nDb );
103 zDb = db->aDb[pTab->iDb].zName;
159 if( db->flags & SQLITE_CountRows ){
168 if( db->flags & SQLITE_CountRows ){
203 if( db->flags & SQLITE_CountRows ){
265 sqliteGenerateRowDelete(db, v, pTab, iCur, pParse->trigStack==0);
303 if( db
336 sqliteGenerateRowDelete( sqlite *db, Vdbe *v, Table *pTab, int iCur, int count ) argument
367 sqliteGenerateRowIndexDelete( sqlite *db, Vdbe *v, Table *pTab, int iCur, char *aIdxUsed ) argument
[all...]
H A Dexpr.c389 ** pExpr->iDb Set the index in db->aDb[] of the database holding
424 sqlite *db = pParse->db; /* The database */ local
462 if( zDb!=0 && sqliteStrICmp(db->aDb[pTab->iDb].zName, zDb)!=0 ){
840 pDef = sqliteFindFunction(pParse->db, zId, nId, n, 0);
842 pDef = sqliteFindFunction(pParse->db, zId, nId, -1, 0);
1078 if( pParse->db->file_format>=4 && sqliteExprType(pExpr)==SQLITE_SO_TEXT ){
1156 pDef = sqliteFindFunction(pParse->db, zId, nId, nExpr, 0);
1340 if( pParse->db->file_format>=4 && sqliteExprType(pExpr)==SQLITE_SO_TEXT ){
1433 if( pParse->db
1630 sqliteFindFunction( sqlite *db, const char *zName, int nName, int nArg, int createFlag ) argument
[all...]
H A Dfunc.c209 sqlite *db = sqlite_user_data(context); local
210 sqlite_set_result_int(context, sqlite_last_insert_rowid(db));
218 sqlite *db = sqlite_user_data(context); local
219 sqlite_set_result_int(context, sqlite_changes(db));
228 sqlite *db = sqlite_user_data(context); local
229 sqlite_set_result_int(context, sqlite_last_statement_changes(db));
563 void sqliteRegisterBuiltinFunctions(sqlite *db){ argument
568 u8 argType; /* 0: none. 1: db 2: (-1) */
629 case 1: pArg = db; break;
632 sqlite_create_function(db, aFunc
[all...]
H A Dinsert.c103 sqlite *db; /* The main database structure */ local
120 db = pParse->db;
131 assert( pTab->iDb<db->nDb );
132 zDb = db->aDb[pTab->iDb].zName;
324 if( db->flags & SQLITE_CountRows ){
481 if( (db->flags & SQLITE_CountRows)!=0 ){
528 if( db->flags & SQLITE_CountRows ){
658 }else if( pParse->db->onError!=OE_Default ){
659 onError = pParse->db
[all...]
H A Dmain.c28 sqlite *db; /* The database being initialized */ member in struct:__anon387
70 sqlite *db = pData->db; local
77 ** But because db->init.busy is set to 1, no VDBE code is generated
82 assert( db->init.busy );
83 db->init.iDb = atoi(argv[4]);
84 assert( db->init.iDb>=0 && db->init.iDb<db->nDb );
85 db
187 sqliteInitOne(sqlite *db, int iDb, char **pzErrMsg) argument
379 sqliteInit(sqlite *db, char **pzErrMsg) argument
476 sqlite *db; local
544 sqlite_last_insert_rowid(sqlite *db) argument
551 sqlite_changes(sqlite *db) argument
561 sqlite_last_statement_changes(sqlite *db) argument
568 sqlite_close(sqlite *db) argument
601 sqliteRollbackAll(sqlite *db) argument
623 sqlite_exec( sqlite *db, const char *zSql, sqlite_callback xCallback, void *pArg, char **pzErrMsg ) argument
691 sqlite_compile( sqlite *db, const char *zSql, const char **pzTail, sqlite_vm **ppVm, char **pzErrMsg ) argument
906 sqlite_busy_handler( sqlite *db, int (*xBusy)(void*,const char*,int), void *pArg ) argument
921 sqlite_progress_handler( sqlite *db, int nOps, int (*xProgress)(void*), void *pArg ) argument
944 sqlite_busy_timeout(sqlite *db, int ms) argument
955 sqlite_interrupt(sqlite *db) argument
993 sqlite_create_function( sqlite *db, const char *zName, int nArg, void (*xFunc)(sqlite_func*,int,const char**), void *pUserData ) argument
1014 sqlite_create_aggregate( sqlite *db, const char *zName, int nArg, void (*xStep)(sqlite_func*,int,const char**), void (*xFinalize)(sqlite_func*), void *pUserData ) argument
1042 sqlite_function_type(sqlite *db, const char *zName, int dataType) argument
1059 sqlite_trace(sqlite *db, void (*xTrace)(void*,const char*), void *pArg) argument
1072 sqlite_commit_hook( sqlite *db, int (*xCallback)(void*), void *pArg ) argument
1109 sqliteBtreeFactory( const sqlite *db, const char *zFilename, int omitJournal, int nCache, Btree **ppBtree) argument
[all...]
H A Dpragma.c70 ** Interpret the given string as a temp db location. Return 1 for file
93 sqlite *db = pParse->db; local
94 if( db->temp_store==ts ) return SQLITE_OK;
95 if( db->aDb[1].pBt!=0 ){
96 if( db->flags & SQLITE_InTrans ){
101 sqliteBtreeClose(db->aDb[1].pBt);
102 db->aDb[1].pBt = 0;
103 sqliteResetInternalSchema(db, 0);
105 db
129 sqlite *db = pParse->db; local
162 sqlite *db = pParse->db; local
[all...]
H A Dtable.c126 sqlite *db, /* The database on which the SQL executes */
151 rc = sqlite_exec(db, zSql, sqlite_get_table_cb, &res, pzErrMsg);
125 sqlite_get_table( sqlite *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn, char **pzErrMsg ) argument
H A Dtokenize.c404 sqlite *db = pParse->db; local
409 db->flags &= ~SQLITE_Interrupt;
428 if( (db->flags & SQLITE_Interrupt)!=0 ){
482 sqliteDeleteTable(pParse->db, pParse->pNewTable);
H A Dtrigger.c55 sqlite *db = pParse->db; local
68 if( db->init.busy
69 && sqliteFixInit(&sFix, pParse, db->init.iDb, "trigger", pName)
79 if( iDb>=2 && !db->init.busy ){
81 "database %s", db->aDb[tab->iDb].zName);
87 if( sqliteHashFind(&(db->aDb[iDb].trigHash), zName,pName->n+1) ){
109 const char *zDb = db->aDb[tab->iDb].zName;
110 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb;
165 sqlite *db local
394 sqlite *db = pParse->db; local
425 sqlite *db = pParse->db; local
[all...]
H A Dupdate.c43 sqlite *db; /* The database structure */ local
65 db = pParse->db;
146 pTab->aCol[j].zName, db->aDb[pTab->iDb].zName);
241 if( db->flags & SQLITE_CountRows && !pParse->trigStack ){
382 sqliteGenerateRowIndexDelete(db, v, pTab, iCur, aIdxUsed);
397 if( db->flags & SQLITE_CountRows && !pParse->trigStack){
446 if( db->flags & SQLITE_CountRows && !pParse->trigStack ){
H A Dutil.c1084 ** Ticket #202: If db->magic is not a valid open value, take care not
1085 ** to modify the db structure at all. It could be that db is a stale
1087 ** call to sqlite_close(db) and db has been deallocated. And we do
1090 int sqliteSafetyOn(sqlite *db){ argument
1091 if( db->magic==SQLITE_MAGIC_OPEN ){
1092 db->magic = SQLITE_MAGIC_BUSY;
1094 }else if( db->magic==SQLITE_MAGIC_BUSY || db
1107 sqliteSafetyOff(sqlite *db) argument
1128 sqliteSafetyCheck(sqlite *db) argument
[all...]
H A Dvacuum.c91 static int execsql(char **pzErrMsg, sqlite *db, const char *zSql){ argument
96 rc = sqlite_exec(db, zSql, 0, 0, &zErrMsg);
200 int sqliteRunVacuum(char **pzErrMsg, sqlite *db){ argument
211 if( db->flags & SQLITE_InTrans ){
216 if( db->flags & SQLITE_Interrupt ){
224 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt);
252 if( (rc = execsql(pzErrMsg, db, "BEGIN"))!=0 ) goto end_of_vacuum;
257 sVac.dbOld = db;
261 rc = sqlite_exec(db,
272 sqliteBtreeGetMeta(db
[all...]
/PHP_5_3/ext/dba/
H A Ddba_db1.c48 DB *db; local
76 db = dbopen((char *)info->path, gmode, filemode, DB_HASH, NULL);
78 if (db == NULL) {
83 dba->dbp = db;
/PHP_5_3/ext/interbase/
H A Dibase_service.c117 /* db info arguments */
423 * When passing the backup file as isc_spb_dbname and the destination db as
427 char *db, *bk, buf[200]; local
436 &res, &db, &dblen, &bk, &bklen, &opts, &verbose)) {
445 operation, isc_spb_dbname, (char)dblen, (char)(dblen >> 8), db,
491 char buf[128], *db; local
499 &res, &db, &dblen, &action, &argument)) {
547 svc_action, isc_spb_dbname, (char)dblen, (char)(dblen >> 8), db,
557 db, (char)action, (char)argument);
579 /* {{{ proto bool ibase_maintain_db(resource service_handle, string db, in
[all...]
/PHP_5_3/ext/pdo_firebird/
H A Dphp_pdo_firebird_int.h72 isc_db_handle db; member in struct:__anon132
/PHP_5_3/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h58 sqlite3 *db; member in struct:__anon158
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c43 sqlite *db; member in struct:__anon202
95 S->einfo.errcode = sqlite_compile(S->H->db, stmt->active_query_string, &tail, &S->vm, &errmsg);
111 stmt->row_count = sqlite_changes(S->H->db);
325 if (H->db) {
326 sqlite_close(H->db);
327 H->db = NULL;
364 if ((H->einfo.errcode = sqlite_exec(H->db, sql, NULL, NULL, &errmsg)) != SQLITE_OK) {
368 return sqlite_changes(H->db);
377 id = php_pdo_int64_to_str(sqlite_last_insert_rowid(H->db) TSRMLS_CC);
420 if (sqlite_exec(H->db, "BEGI
[all...]
H A Dsess_sqlite.c30 #define PS_SQLITE_DATA sqlite *db = (sqlite*)PS_GET_MOD_DATA()
43 sqlite *db; local
46 db = sqlite_open(save_path, 0666, &errmsg);
47 if (db == NULL) {
55 sqlite_busy_timeout(db, 60000);
57 sqlite_exec(db, "PRAGMA default_synchronous = OFF", NULL, NULL, NULL);
58 sqlite_exec(db, "PRAGMA count_changes = OFF", NULL, NULL, NULL);
62 sqlite_exec(db,
69 PS_SET_MOD_DATA(db);
78 sqlite_close(db);
[all...]
/PHP_5_3/ext/sqlite3/
H A Dphp_sqlite3_structs.h78 sqlite3 *db; member in struct:_php_sqlite3_db_object

Completed in 39 milliseconds

12