drh
047d4538e3
Set binary mode for output on Windows when writing a quoted string that
...
might contain newline characters.
FossilOrigin-Name: 7096e6c06d9a3e48d3f0d134f5f3275dde796be2
2015-01-18 20:30:23 +00:00
drh
5d907be5c9
Set the command-line shell stdin to binary mode on windows.
...
FossilOrigin-Name: 80541e8b94b713e8f9e588ae047ffc5ae804ef1c
2015-01-18 01:50:54 +00:00
mistachkin
9b97b8fed9
Merge updates from trunk.
...
FossilOrigin-Name: ca5f2c545216c82486e66d26f55b49cbf351ffdc
2015-01-12 18:52:57 +00:00
mistachkin
2318d3387d
Work in progress on fixing harmless compiler warnings when using -W4 and MSVC.
...
FossilOrigin-Name: 856dd245ce037f93d5ae2ddeb4fdf949c1e5c8e9
2015-01-12 18:02:52 +00:00
drh
0ede9ebec7
Improvements to compile-time-option hygiene. Use "#if OPTION" instead of
...
"#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work.
Add the "Have-Not" configuration in releasetest.tcl which disables all of
the "HAVE_component" compile-time options.
FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68
2015-01-10 16:49:23 +00:00
mistachkin
dd11f2d930
Update a comment.
...
FossilOrigin-Name: e0e102a0bd9d07bccdb1feb95767cb81fb57c29f
2014-12-11 04:49:46 +00:00
mistachkin
44b99f7e2e
Rename a structure member to improve code clarity.
...
FossilOrigin-Name: d48eda16ef8a84a93de9c6f38f794aceb4a6ba0d
2014-12-11 03:29:14 +00:00
mistachkin
44ca920625
Remove an unused structure member.
...
FossilOrigin-Name: d8404340cb01af440feebd19d291eb7198cfa576
2014-12-11 03:25:05 +00:00
mistachkin
f1f84a6ec1
Further simplify shell mode changes.
...
FossilOrigin-Name: cf9c6e7eea4cab073e608e6fefdd24be87a8abeb
2014-12-11 03:20:58 +00:00
mistachkin
e0d6885f17
Simplify and cleanup the implementation of the new ASCII mode for the shell.
...
FossilOrigin-Name: 66a28f7abaeaf1ebe6e43d856af88ac64b1ff230
2014-12-11 03:12:33 +00:00
mistachkin
31868243e2
Merge updates from trunk.
...
FossilOrigin-Name: 5b5d3e4d0d158594c0db05ddbf4d926b65825042
2014-12-11 02:28:42 +00:00
drh
ac5649a985
Remove the ill-designed "-end" option from the command-line shell. Instead,
...
allow multiple SQL or dot-commands as command-line arguments. Any -cmd
commands are processed first, followed by other command-line arguments, for
backwards compatibility.
FossilOrigin-Name: 24fa2e9832daaa5d68ee28a00c56c55f97a4da9e
2014-11-28 13:35:03 +00:00
drh
cb7fe0ab9c
Add the -end option to the command-line shell, which forces it to exit after
...
reading prior command-line options (presumably including one or more -cmd
options) and without reading standard input.
FossilOrigin-Name: b59397b1f1e32c478b5fa96659cd4300177d39f7
2014-11-28 11:54:44 +00:00
drh
4ace5362c2
Shorten over-length source code lines in shell.c.
...
FossilOrigin-Name: 7f3819f6422badd344c1264b0cd2f2c7afe077df
2014-11-10 14:42:28 +00:00
drh
9a06d30bb5
In the ".scanstats on" output from the shell, round the estRows value to
...
the nearest integer, rather than rounding toward zero.
FossilOrigin-Name: 5700508535c35ac6b158b527e1d47e529e8e28ab
2014-11-07 13:52:44 +00:00
drh
15f23c2cf0
Further improvements to the ".scanstats on" display in the shell. Be sure
...
to show the results of all subqueries even if there are gaps in the
SELECTID values. Add ".scanstats" to the ".help" output.
FossilOrigin-Name: ee922682bb7235dbcd23a22fcfdfa188f6d3228a
2014-11-06 12:46:16 +00:00
drh
179bac3a14
On the ".scanstats on" output in the shell, initialize the estimated count for
...
the first loop of each subquery to the actual loop count.
FossilOrigin-Name: d1c51c8455d5ce972a77720c2d56228646ced27c
2014-11-06 12:17:24 +00:00
drh
42f30bce11
Changes the formatting of ".scanstats on" in the shell so that the stats for
...
subqueries are grouped together and occur after the main query.
FossilOrigin-Name: eacbbd8849db9b023eff15ef1cb42ec941299433
2014-11-06 12:08:21 +00:00
drh
c6652b1efe
Add the SQLITE_SCANSTAT_SELECTID metric. Use it to improve the
...
".stmtscan on" output in the shell.
FossilOrigin-Name: 64ad5761a841f71530d41565b9fbe9d19c2d6aff
2014-11-06 04:42:20 +00:00
drh
518140ed04
Change the SQLITE_SCANSTAT_EST parameter so that it returns a double for
...
the estimated number of output rows per loop, rather than a 64-bit integer.
Revise the output format for the ".scanstats on" in the shell to make use
of this new capability.
FossilOrigin-Name: f9684000665ae7ef6f89c3773612b8286b8f545a
2014-11-06 03:55:10 +00:00
dan
8d1edb92c4
Add the ".scanstats on" command to the shell tool. Executing this command causes the shell tool to print values from sqlite3_stmt_scanstatus() after each query is run.
...
FossilOrigin-Name: 7974c0ed10ffdc960a43fed89845c2bed428958d
2014-11-05 09:07:28 +00:00
drh
40253262e0
Fix a (probably harmless) but in the CSV output mode of the command-line
...
shell.
FossilOrigin-Name: 19fe4a0a475bd94f491031aea7a183f7c0515cf3
2014-10-17 21:35:05 +00:00
drh
bf59bf94b2
Cause the command-line shell to return non-zero if the final SQL statement
...
is incomplete.
FossilOrigin-Name: 177fff3b98b101b98f1e7d334b6a80530b645565
2014-10-10 13:08:33 +00:00
drh
4fa4a54f7e
Remove the SQLITE_ENABLE_TREE_EXPLAIN compile-time option. Add alternative
...
debugging display routines: sqlite3TreeViewExpr(), sqlite3TreeViewExprList(),
and sqlite3TreeViewSelect().
FossilOrigin-Name: 4ff51325d6b41d0c59e303b573700ec80c51d216
2014-09-30 12:33:33 +00:00
drh
abd4c72357
Enable SELECT query planning tracing when compiled with
...
SQLITE_ENABLE_SELECTTRACE and either SQLITE_DEBUG or SQLITE_TEST.
FossilOrigin-Name: cbe0cf9ddf46f0a678c85d49bfa74e3b7712e1a1
2014-09-20 18:18:33 +00:00
drh
7883ecfcd4
Enhance the sqlite3_user_add() interface to initialize the user
...
authentication logic. Add test cases for the extra argument on the
end of the authorizer callback.
FossilOrigin-Name: 842c6da8f1a62bd13a1b4089a98b0835a46a2285
2014-09-11 16:19:31 +00:00
drh
d39c40ff5e
Reorder parameters on the sqlite3_user_*() interfaces for consistency.
...
Add the first TCL test cases.
FossilOrigin-Name: 2f6d8f32eef526b5912f42ab467e3c7812480d8b
2014-09-11 00:27:53 +00:00
drh
f442e33e3a
Add the ".user" shell command and implement the sqlite3_user_add()
...
routine. Incremental check-in. The code compiles but does not work.
FossilOrigin-Name: a0455f9deb603bf91684158d911269622720fc1a
2014-09-10 19:01:14 +00:00
mistachkin
31970cca38
Fix harmless compiler warnings for MSVC.
...
FossilOrigin-Name: 3ef3246120d72dffe469733bb21667a548af0a44
2014-09-01 01:16:49 +00:00
mistachkin
18c8b58033
Merge updates from trunk.
...
FossilOrigin-Name: 51f33cf1290cf767c1c6ba0228f4f30e4059c994
2014-09-01 01:15:22 +00:00
drh
44dec87538
In the command-line shell, added options --lookaside, --pagecache, and
...
--scratch used to configure auxiliary memories.
FossilOrigin-Name: f61db04be4d7fb21b7f721647c37c45e283ffbea
2014-08-30 15:49:25 +00:00
drh
4b2590e44b
Improvements to output formatting with the ".trace" command in the
...
command-line shell.
FossilOrigin-Name: d09d63c07748839e9b778a769b183bdd614c6c13
2014-08-19 19:28:00 +00:00
drh
dcd87a9dd3
Refactor the names of state objects in the command-line shell implementation..
...
FossilOrigin-Name: 11a70e1ae7f05d06e4e09c9d20db0444b8881584
2014-08-18 13:45:42 +00:00
drh
490fe86f1a
Fix harmless compiler warnings.
...
FossilOrigin-Name: 52b03f045edf6fc29f9ba9a5cac53a59f0feb0eb
2014-08-11 14:21:32 +00:00
drh
5402710b0b
Fix harmless compiler warnings. In the command-line shell, report if the
...
".system" command returns a non-zero result.
FossilOrigin-Name: 1202e9771f6d699dbf5268368108a3527d06d799
2014-08-06 14:36:53 +00:00
mistachkin
22c9638efd
Correct help text and make consistent use of snprintf.
...
FossilOrigin-Name: 9c424a5c50e4a2ed36556e99fba0e7072a2d3468
2014-07-24 22:51:18 +00:00
mistachkin
486fd43fd8
Fix typo in comment and update help text.
...
FossilOrigin-Name: 289092bb64463efe78a5f01b06b24aa664a31feb
2014-07-24 22:20:23 +00:00
mistachkin
fad4208f2f
Merge updates from trunk.
...
FossilOrigin-Name: 8dc0cdf652f099d464d3de416dffd83efb895009
2014-07-24 22:13:12 +00:00
drh
ba5b09319e
Add the readfile(FILENAME) and writefile(FILENAME,CONTENT) SQL functions to
...
the command-line shell.
FossilOrigin-Name: fb1048cb2b613a0dbfe625a5df05e9dcd736a433
2014-07-24 12:39:59 +00:00
drh
6976c2123b
In the command-line shell, in CSV output mode, terminate rows with CRNL but
...
do not expand NL characters in data into CRNL. Provide the extra -newline
command-line option and the extra argument to .separator to designate an
alternative newline character sequence for CSV output.
FossilOrigin-Name: 16c8ce10e1530731441e6c4538691b71564684ed
2014-07-24 12:09:47 +00:00
mistachkin
636bf9f768
Add new ASCII mode to the shell capable of importing and exporting using the official unit and record separators (i.e. 0x1F and 0x1E, respectively).
...
FossilOrigin-Name: 7fe601ead0d0ae26cb09d0dbc7d6367785376567
2014-07-19 20:15:16 +00:00
drh
56f674c8a0
Improvements to the ".fullschema" command in the command-line shell.
...
FossilOrigin-Name: fa80c64caa573297bf43cb5b11d9e7db58567200
2014-07-18 14:43:29 +00:00
drh
c1971541e4
Add the .fullschema command to the sqlite3.exe utility. This command shows
...
the schema and the content of the sqlite_stat tables, all in one go. Useful
when reporting problems with the query planner.
FossilOrigin-Name: ebec48921c092e20c9d7608242b63db40b40be5e
2014-06-23 23:28:13 +00:00
mistachkin
6fe0338ca9
Fix CSV import issue, reported via the mailing list, in the shell when the file to be imported ends with an empty line.
...
FossilOrigin-Name: fc918f7d332b8f7cabc79a0f1586bd6760d14d40
2014-06-16 22:45:28 +00:00
drh
6d36ffe8f3
Add the ".eqp" dot-command to the ".help" output in the command-line shell.
...
This was accidently omitted when the ".eqp" command was originally implemented
for SQLite 3.8.4 (check-in [e6ecf7337658624]).
FossilOrigin-Name: b0b4c776c321ca4a792ef67efbc62351eeac247d
2014-06-16 15:01:37 +00:00
drh
01f3754dcd
Fix a harmless "scan-build" compiler warning in the command-line shell.
...
FossilOrigin-Name: 39fafe0a19ff346a2354f00b03f8e8e4b8b0524c
2014-05-31 15:43:33 +00:00
drh
3c4461f47a
Fix a harmless compiler warning in the command-line shell code.
...
FossilOrigin-Name: a80527f60b4856e869f25e7b13afde351bc26a25
2014-05-29 20:39:59 +00:00
drh
b463fef3fd
Fix to the EXPLAIN indentation logic in the command-line shell.
...
FossilOrigin-Name: 8f916ed1e185ac728e00624d90e1d7bd2dda4469
2014-05-29 20:17:57 +00:00
drh
c2ce0bea88
Improvements to error messages for errors in the dot-commands of the
...
command-line shell. Add the ".once" command. The output of ".help"
now goes to the designated output channel.
FossilOrigin-Name: 48dce821a07ac29da6ce05e92cf3f6e52b6eb388
2014-05-29 12:36:14 +00:00
drh
dcb3e3d62c
Only quote the arguments to the ".shell" and ".system" commands if they
...
contain spaces.
FossilOrigin-Name: e58f4bd39d51c4c1a28684dab6427de81173d564
2014-05-29 03:17:29 +00:00