| /sqlite-3.40.0/test/ |
| H A D | e_wal.test | 81 # EVIDENCE-OF: R-31969-57825 If EXCLUSIVE locking mode is set prior to 97 # remains in EXCLUSIVE mode as long as the journal mode is WAL; attempts 98 # to change the locking mode using "PRAGMA locking_mode=NORMAL;" are 112 # locking mode is to first change out of WAL journal mode. 150 # a shared-memory wal-index, the locking mode can be changed freely 165 # is omitted, when the locking mode is EXCLUSIVE prior to the first 166 # WAL-mode database access, that the locking mode is stuck in EXCLUSIVE. 188 # mode, or the attempt convert a database into WAL mode, will fail. 205 # to version 3.7.0, 2010-07-22) from trying to recover a WAL-mode 208 # to 2 in WAL mode. [all …]
|
| H A D | wal5.test | 39 if {[lsearch {-mode -db} $key]<0} { error "unknown switch: $key" } 45 if {[info exists a(-mode)]} { append sql " = $a(-mode)" } 53 set a(-mode) passive 60 if {[lsearch -exact $vals $a(-mode)]<0} { set a(-mode) passive } 62 set cmd [list sqlite3_wal_checkpoint_v2 $dbhandle $a(-mode)] 132 code1 { do_wal_checkpoint db -mode restart } 159 code1 { do_wal_checkpoint db -mode restart } 381 do_test 4.$tn.2 { do_wal_checkpoint db -mode truncate } {0 0 0} 424 do_test 5.$tn.3 { do_wal_checkpoint db -mode passive } {0 10 10} 464 do_test 5.$tn.17 { do_wal_checkpoint db -mode restart } {1 4 4} [all …]
|
| H A D | zipfile.test | 44 proc fix_stat_mode {name mode} { 52 set result $mode 60 return $mode 172 1 mode {} 0 {} 0 349 WHERE a.name=+b.name AND +a.mode=b.mode 377 SELECT name, mode, data FROM zzz; 382 SELECT name, mode, data FROM zzz; 393 SELECT name, mode, data FROM zzz; 476 foreach {tn mode} { 482 WITH m(m) AS ( SELECT $mode) [all …]
|
| H A D | e_uri.test | 257 1 {file:test.db?mode=ro} {not an error} 260 4 {file:test.db?mode=Ro} {no such access mode: Ro} 261 5 {file:test.db?mode=Rw} {no such access mode: Rw} 262 6 {file:test.db?mode=Rwc} {no such access mode: Rwc} 264 8 {file:test.db?mode=MEMORY} {no such access mode: MEMORY} 282 1 {file:test.db?mode=ro} 1 0 0 283 2 {file:test.db?mode=rw} 1 1 0 284 3 {file:test.db?mode=rwc} 1 1 1 329 4 {file:test.db?mode=rw} ro {access mode not allowed: rw} 333 7 {file:test.db?mode=rwc} ro {access mode not allowed: rwc} [all …]
|
| H A D | e_walckpt.test | 97 proc checkpoint {db mode args} { 119 if {$mode == "passive"} { 416 checkpoint db $mode main 422 if { $mode=="passive" } { 466 checkpoint db $mode main 477 if { $mode=="full" || $mode=="restart" || $mode=="truncate" } { 555 } [expr {($mode=="restart"||$mode=="truncate")&&$busy_handler_mode==3}] 601 # mode: 606 foreach {tn mode res} { 730 # WAL mode. [all …]
|
| H A D | shell1.test | 238 catchcmd "test.db" ".mode FOO" 241 catchcmd "test.db" ".mode csv" 425 # .mode MODE ?TABLE? Set output mode where MODE is one of: 436 catchcmd "test.db" ".mode" 439 catchcmd "test.db" ".mode FOO" 442 catchcmd "test.db" ".mode csv" 463 catchcmd "test.db" ".mode tcl" 621 [regexp {mode:} $res] \ 1200 .mode box 1247 .mode csv [all …]
|
| H A D | mutex1.test | 96 # * Serialized mode, 97 # * Multi-threaded mode, 98 # * Single-threaded mode. 102 foreach {mode mutexes} { 118 do_test mutex1.2.$mode.1 { 121 sqlite3_config $mode 124 do_test mutex1.2.$mode.2 { 136 if {$mode ne "singlethread"} { 137 do_test mutex1.2.$mode.3 { 155 do_test mutex1.2.$mode.4 { [all …]
|
| H A D | shell5.test | 199 .mode quote 214 .mode quote 351 .mode csv 363 .mode csv 375 .mode csv 387 .mode csv 400 .mode csv 442 .mode csv 457 .mode csv 471 .mode csv [all …]
|
| H A D | bestindex1.test | 68 # Parameter $mode may be one of: 75 proc t1_vtab {mode method args} { 94 switch -- $mode { 105 error "Bad mode - $mode" 132 foreach {tn mode} { 135 do_execsql_test 2.2.$mode.1 " 137 CREATE VIRTUAL TABLE t1 USING tcl(t1_vtab $mode); 141 do_execsql_test 2.2.$mode.3 {SELECT rowid FROM t1} {1 2 3 4} 144 do_execsql_test 2.2.$mode.5 { 164 do_eqp_test 2.2.$mode.6 { [all …]
|
| H A D | uri.test | 163 foreach {tn mode create_ok write_ok readonly_ok} { 174 list [catch {sqlite3 db "file:test.db?mode=$mode"} msg] $msg 186 sqlite3 db "file:test.db?mode=$mode" 191 set A(0) [list 1 "access mode not allowed: $mode"] 193 list [catch {sqlite3 db "file:test.db?mode=$mode" -readonly 1} msg] $msg 230 list [catch {sqlite3 db "file:test.db?mode=rc"} msg] $msg 231 } {1 {no such access mode: rc}} 234 } {1 {no such cache mode: public}} 335 sqlite3 db file:test.db?mode=ro 336 execsql { ATTACH 'file:test.db2?mode=rw' AS aux }
|
| H A D | walmode.test | 13 # "PRAGMA journal_mode=WAL" mode. 21 # "PRAGMA journal_mode=WAL" treats "WAL" as an unrecognized mode. 76 # in the file system. This file should default to WAL mode. 131 # from WAL to rollback mode because a second connection has the database 182 # to WAL mode. WAL mode is for persistent file-backed databases only. 279 # Test changing to WAL mode from journal_mode=off or journal_mode=memory 281 foreach {tn mode} { 291 PRAGMA journal_mode = $mode; 294 } [list $mode wal] 364 # Change to WAL mode on test2.db and make sure (in the tests that follow) [all …]
|
| H A D | avfs.test | 91 sqlite3 adb "file:$::fza?mode=rwc$::vf" -uri 1 106 sqlite3 adb "file:$::fza?mode=rw$::vf" -uri 1 121 sqlite3 adb "file:$::fa?mode=rwc$::vf" -uri 1 138 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 176 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 218 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 229 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 250 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 262 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 272 sqlite3 adb "file:$::fa?mode=rw$::vf" -uri 1 [all …]
|
| H A D | wapp.tcl | 94 proc wappInt-enc {all mode nu1 txt} { 95 return [uplevel 2 "wappInt-enc-$mode \"$txt\""] 899 set mode auto 910 set mode "server" 915 set mode "local" 921 set mode "scgi" 927 set mode "remote-scgi" 931 set mode "cgi" 971 set mode cgi 973 set mode local [all …]
|
| H A D | permutations.test | 628 Tests run in SQLITE_OPEN_FULLMUTEX mode 677 Run tests in exclusive locking mode. 688 Run tests in exclusive locking mode and truncate journal mode. 700 Run tests in persistent-journal mode. 711 Run tests in persistent-journal mode. 730 # Run some tests in no journal mode. 733 Run tests in no-journal mode. 741 # Run some error tests in no journal mode. 754 Run crash.test in autovacuum mode. 762 Run ioerr.test in autovacuum mode. [all …]
|
| H A D | sync2.test | 49 # Tests for journal mode. 77 # Tests for wal mode. 114 # Wal mode, sync=normal. The first transaction does one sync on directory, 130 # Delete mode, sync=full. The first transaction does one sync on 137 # Switch back to wal mode. 144 # Now set synchronous=off, then switch back to delete mode. Check
|
| H A D | jrnlmode3.test | 91 # Initialize the journal mode. 97 # Verify that the initial journal mode takes. 103 # Start a transaction and try to change the journal mode within 124 # Now change the journal mode again. This time the new mode
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | extract_api_docs.tcl | 157 set mode "" 161 if {$mode != ""} {output "</$mode>"} 162 set mode "" 163 } elseif {$mode == ""} { 165 set mode codeblock 167 set mode p 169 output "<$mode$margin>" 174 if {$mode != ""} {output "</$mode>"}
|
| /sqlite-3.40.0/autoconf/tea/tclconfig/ |
| H A D | install-sh | 85 mode=0755 145 -m) mode=$2 146 case $mode in 149 echo "$0: invalid mode: $mode" >&2 215 case $mode in 226 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 233 cp_umask=$mode$u_plus_rw;; 337 mkdir_mode=-m$mode 450 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 472 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | fileio.c | 107 # define mkdir(path,mode) _mkdir(path) 373 if( S_ISLNK(mode) ){ in writeFile() 379 if( S_ISDIR(mode) ){ in writeFile() 380 if( mkdir(zFile, mode) ){ in writeFile() 389 || ((sStat.st_mode&0777)!=(mode&0777) && 0!=chmod(zFile, mode&0777)) in writeFile() 409 if( rc==0 && mode && chmod(zFile, mode & 0777) ){ in writeFile() 485 mode_t mode = 0; in writefileFunc() local 499 mode = (mode_t)sqlite3_value_int(argv[2]); in writefileFunc() 505 res = writeFile(context, zFile, argv[1], mode, mtime); in writefileFunc() 513 if( S_ISLNK(mode) ){ in writefileFunc() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | test_windirent.h | 52 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) argument 56 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) argument 60 #define S_ISLNK(mode) (0) argument
|
| H A D | test_syscall.c | 107 static int ts_access(const char *zPath, int mode); 122 static int ts_fchmod(int fd, mode_t mode); 226 static int ts_open(const char *zFile, int flags, int mode){ in ts_open() argument 230 return orig_open(zFile, flags, mode); in ts_open() 252 static int ts_access(const char *zPath, int mode){ in ts_access() argument 256 return orig_access(zPath, mode); in ts_access() 377 static int ts_fchmod(int fd, mode_t mode){ in ts_fchmod() argument 381 return orig_fchmod(fd, mode); in ts_fchmod()
|
| /sqlite-3.40.0/ext/fts5/test/ |
| H A D | fts5_common.tcl | 601 proc tclnum_tokenize {mode tflags text} { 604 if {$tflags == $mode && [info exists ::tclnum_syn($w)]} { 611 set mode query 613 set mode [lindex $args 0] 615 if {$mode != "query" && $mode != "document"} { error "bad mode: $mode" } 616 return [list tclnum_tokenize $mode]
|
| /sqlite-3.40.0/tool/ |
| H A D | replace.tcl | 9 set mode [string tolower [lindex $argv 0]] 12 if {-1 == [lsearch -exact [list exact regsub include] $mode]} {exit 1} 17 switch -exact $mode {
|
| /sqlite-3.40.0/ |
| H A D | ltmain.sh | 752 --finish) mode="finish" ;; 773 mode="$1" 795 -dlopen=*|--mode=*|--tag=*) 1461 case $mode in 7095 if test "$mode" = relink; then 7363 if test "$mode" = relink; then 8240 { test "$mode" = link || test "$mode" = relink; } && 8318 case "$mode" in 8365 if test "$mode" = clean ; then 8417 { test "$mode" = uninstall || test "$mode" = clean; } && [all …]
|
| /sqlite-3.40.0/ext/wasm/api/ |
| H A D | sqlite3-wasi.h | 10 int fchmod(int fd, mode_t mode); 11 int fchmod(int fd, mode_t mode){ in fchmod() argument 12 return (fd && mode) ? 0 : 0; in fchmod()
|