Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 100) sorted by relevance

1234

/sqlite-3.40.0/src/
H A Dloadext.c543 void *handle; in sqlite3LoadExtension() local
589 handle = sqlite3OsDlOpen(pVfs, zFile); in sqlite3LoadExtension()
591 for(ii=0; ii<ArraySize(azEndings) && handle==0; ii++){ in sqlite3LoadExtension()
594 handle = sqlite3OsDlOpen(pVfs, zAltFile); in sqlite3LoadExtension()
598 if( handle==0 ) goto extension_not_found; in sqlite3LoadExtension()
599 xInit = (sqlite3_loadext_entry)sqlite3OsDlSym(pVfs, handle, zEntry); in sqlite3LoadExtension()
617 sqlite3OsDlClose(pVfs, handle); in sqlite3LoadExtension()
644 sqlite3OsDlClose(pVfs, handle); in sqlite3LoadExtension()
656 sqlite3OsDlClose(pVfs, handle); in sqlite3LoadExtension()
666 memcpy(aHandle, db->aExtension, sizeof(handle)*db->nExtension); in sqlite3LoadExtension()
[all …]
/sqlite-3.40.0/ext/wasm/
H A Dbatch-runner.js39 db.handle.transaction(function(tx){
63 db.handle.changeVersion(db.handle.version, "", ()=>{}, onErr, ()=>{});
197 db.handle.transaction(transaction, (e)=>{
238 db.handle, pSql, sqlByteLen, 0, ppStmt, pzTail
241 checkSqliteRc(db.handle, rc);
264 capi.sqlite3_exec(db.handle,"rollback;",0,0,0);
291 if(!db.handle) return;
443 if(db && db.handle){
482 if(d.handle) return d;
486 d.handle.transaction(function(tx){
[all …]
/sqlite-3.40.0/test/
H A Dfilectrl.test52 set handle [file_control_win32_get_handle db]
55 list $size $handle [expr {$handle != 0}]
65 set handle [file_control_win32_get_handle db]
68 list $size $handle [expr {$handle != 0}]
H A De_blobclose.test32 # EVIDENCE-OF: R-03145-46390 This function closes an open BLOB handle.
34 # It's not clear how to test that a blob handle really is closed.
35 # Attempting to use a closed blob handle will likely crash the process.
37 # the blob handle has been closed.
46 # EVIDENCE-OF: R-34027-00617 If the blob handle being closed was opened
142 # valid open blob handle, the values returned by the sqlite3_errcode()
149 # EVIDENCE-OF: R-37801-37633 The BLOB handle is closed unconditionally.
150 # Even if this routine returns an error code, the handle is still
153 # Test that the lock has been released. Assume this means the handle
H A Dwalprotocol2.test39 proc lock_callback {method filename handle lock} {
40 # puts "$method $filename $handle $lock"
57 # Attempt a "BEGIN EXCLUSIVE" using connection handle [db]. This
64 proc lock_callback {method filename handle lock} {
66 proc lock_callback {method filename handle lock} {}
82 proc lock_callback {method filename handle lock} {
84 proc lock_callback {method filename handle lock} {}
H A De_blobwrite.test24 # open BLOB handle from a caller-supplied buffer. N bytes of data are
104 # EVIDENCE-OF: R-63341-57517 If the BLOB handle passed as the first
120 # Make a successful write to the blob handle. This shows that the
137 # handle fails with an error code of SQLITE_ABORT.
154 # BLOB handle expired are not rolled back by the expiration of the
155 # handle, though of course those changes might have been overwritten by
156 # the statement that expired the BLOB handle or by other independent
H A De_blobopen.test73 # EVIDENCE-OF: R-37639-55938 This interfaces opens a handle to the BLOB
225 # new BLOB handle is stored in *ppBlob. Otherwise an error code is
343 # sqlite3_blob_write() for an expired BLOB handle fail with a return
346 # 11.2: read-only handle, DELETE.
347 # 11.3: read-only handle, UPDATE.
348 # 11.4: read-only handle, REPLACE.
349 # 11.5: read/write handle, DELETE.
350 # 11.6: read/write handle, UPDATE.
351 # 11.7: read/write handle, REPLACE.
376 # Deleting a different row does not invalidate the blob handle.
[all …]
H A Dwalprotocol.test45 proc lock_callback {method filename handle lock} {
78 proc lock_callback {method filename handle lock} {
93 proc lock_callback {method filename handle lock} {
105 proc lock_callback {method filename handle lock} {
159 proc lock_callback {method file handle spec} {
182 proc lock_callback {method file handle spec} {
H A Dnockpt.test69 # to close the db handle while there is still an unfinalized
70 # statement (so the db handle stays open).
87 # a statement and call sqlite3_close_v2() (so that the statement handle
131 # Finalize the statement handle, causing the first connection to be
H A Dbigfile.test12 # focus of this script testing the ability of SQLite to handle database
36 # Tcl was unable to handle large files.
41 # Mac OS X does not handle large files efficiently. So skip this test
90 # to handle large files. If that is so, then skip all of the following
H A Dshared9.test82 # sequence names - pointers to database handle specific allocations leaking
83 # into schema objects and being used after the original handle has been
172 proc busyhandler {handle args} {
173 set ::busyhandler_invoked_for $handle
H A Dshared.test282 # 3. It is not possible to compile a statement while another handle has a
314 # Sanity check: Create a table in ./test.db via handle db, and test that handle
333 # handle 1 can read table abc. Check that handle 1 cannot modify table abc
334 # or the database schema. Then check that handle 1 can modify table def.
364 # Open a write-transaction using handle 1 and modify the database schema.
366 # database via handle 2 (fails to get the lock on sqlite_master). Also
367 # try to compile a read of the same database using handle 2 (also fails).
368 # Finally, compile a read of the other database using handle 2. This
374 # via handle 1.
384 # via handle 2.
[all …]
H A Dincrblob2.test173 # Update row 3. This should abort handle 3 but leave all others untouched.
180 # Test that a write to handle 3 also returns SQLITE_ABORT.
187 # Delete row 14. This should abort handle 6 but leave all others untouched.
194 # Change the rowid of row 15 to 102. Should abort handle 15.
246 # blob handle counts as a read-lock on its table.
H A Dwal3.test298 foreach {file handle spec} $args break
386 proc lock_callback {method file handle spec} {
455 proc lock_callback {method file handle spec} {
527 proc method_callback {method file handle spec} {
528 if {$handle != "reader" } { return }
543 proc method_callback {method file handle spec} {
544 if {$handle != "reader" } { return }
H A Dincrblob3.test158 # Test that modifying the row a blob handle points to aborts the blob.
174 # 4. Trying to open a read/write handle on an indexed column.
175 # 5. Trying to open a read/write handle on the child key of an FK constraint.
H A Dwalvfs.test321 proc xShmLock {method file handle spec} {
356 proc xShmLock {method file handle spec} {
417 proc xShmMap {method file handle args} {
H A Dwin32lock.test171 set handle [lindex [file_control_win32_set_handle db 0] end]
176 }] [file_control_win32_set_handle db $handle] [sqlite3_extended_errcode db]
H A Denc2.test440 # 2: Open the same database with a different handle assuming UTF-8. Create
441 # a table using this handle.
442 # 3: Read the sqlite_master table from the first handle.
443 # 4: Ensure the first handle recognises the database encoding is UTF-8.
H A Dtkt2409.test60 # Aquire a read-lock on the database using handle [db2].
82 # Open the db handle used by [read_lock_db].
H A Dincrblob.test160 # Read the last 20 bytes of the blob via a blob handle.
183 # Write the second-to-last 20 bytes of the blob via a blob handle.
225 # Test the outcome of trying to write to a read-only blob handle.
529 # read/write operations on the blob-handle to return SQLITE_ABORT.
H A Dfts2a.test171 # Test the ability to handle NULL content
184 # Test the ability to handle non-positive rowids
/sqlite-3.40.0/ext/wasm/api/
H A Dsqlite3-api-opfs.js1017 for await (const handle of dirHandle.values()){
1018 if('directory' === handle.kind){
1021 await callee(handle, subDir);
1023 tgt.files.push(handle.name);
1041 for await (const handle of dir.values()){
1042 dir.removeEntry(handle.name, opt);
1127 for await (const handle of dirHandle.values()){
1128 if(false === opt.callback(handle, dirHandle, depth)) return false;
1129 else if(opt.recursive && 'directory' === handle.kind){
1130 if(false === await callee(handle, depth + 1)) break;
/sqlite-3.40.0/ext/rbu/
H A Drburesume.test44 # 4. Opens a second RBU vacuum handle, resumes and completes the vacuum op.
81 # 4. Opens a second RBU vacuum handle on the copy, resumes and completes the
133 # 4. Opens a second RBU vacuum handle on the copy, resumes and completes the
203 # 2. Opens an RBU handle to apply the RBU update created in test case 2.0.
204 # 3. Steps the RBU handle $n times.
206 # 5. Opens a second RBU handle on the copy, resumes and completes the
H A Drbucrash.test49 # update using many calls to sqlite3rbu_step() on a single rbu handle
78 # $nPre times. Then closes the rbu update handle.
81 # sqlite3rbu_step() $nStep times before closing the handle. A
H A Drbu5.test20 # opened by database handle $db.
31 # database handle $db.
42 # to database handle $db. It is possible to add indexes without changing

1234