Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/test/dotcmd01.sql # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / test / dotcmd01.sql` 179 lines ยท 4201 bytes Raw Blame History 1 #!sqlite3 2 # 3 # 2026-01-30 4 # 5 # The author disclaims copyright to this source code. In place of 6 # a legal notice, here is a blessing: 7 # 8 # May you do good and not evil. 9 # May you find forgiveness for yourself and forgive others. 10 # May you share freely, never taking more than you give. 11 # 12 #*********************************************************************** 13 # 14 # Miscellaneous tests for dot-commands 15 # 16 # ./sqlite3 test/dotcmd01.sql 17 # 18 .open :memory: 19 .mode -reset quote 20 .if NOT capable('vtab') 21 .testcase setup 22 .check '' 23 .exit 24 .endif 25 26 .testcase setup 27 .open :memory: 28 .mode tty 29 .check '' 30 31 # The ".eqp on" setting does not affect the output from .fullschema 32 # and similar. 33 # 34 .testctrl opt -Stat4 35 .testcase 100 36 CREATE TABLE t1(a,b,c); 37 WITH RECURSIVE c(n) AS (VALUES(1) UNION ALL SELECT n+1 FROM c WHERE n<300) 38 INSERT INTO t1(a,b,c) 39 SELECT n%10, n%30, n%100 FROM c; 40 CREATE INDEX t1a ON t1(a); 41 CREATE INDEX t1b ON t1(b); 42 ANALYZE; 43 .eqp on 44 .fullschema 45 .check <