drh
a60ef3d570
Merge the nx-devkit changes into trunk. This includes the new
...
SQLITE_FCNTL_VFSNAME file-control.
FossilOrigin-Name: da118e02c0576ce16f7a26663f59413316223d55
2011-12-14 18:33:13 +00:00
drh
de60fc2d87
Add a file-control that will discover the name of the bottom-level VFS and
...
all the shims in between.
FossilOrigin-Name: cdbfb553af02d10767a905489d9dfc57fc6be54e
2011-12-14 17:53:36 +00:00
drh
73795becfe
Backport a minimal set of changes needed to get 8+3 filenames and the
...
multiplexor shim playing well together.
FossilOrigin-Name: c4e2ce486217c96373836bfe641f46abf891799a
2011-12-12 20:01:12 +00:00
drh
743e003c0e
Add magic comments to shell.c to make it easier for scripts to
...
insert additional version information displays for custom builds.
FossilOrigin-Name: 9b2691aa911289d74bfe3edf45937a33fb7eaa8d
2011-12-12 16:51:50 +00:00
drh
7e02e5e6b5
Begin adding the data-structure explaining subsystem. All is contained within
...
FossilOrigin-Name: 79ae51c5b1b20ed0a425a87e65a32a096a80b7e1
2011-12-06 19:44:51 +00:00
drh
e73c91496f
Minor changes needed to restore full branch test coverage.
...
FossilOrigin-Name: bc10a753579b65ba4604867204b7b3d8383f3ac7
2011-11-09 16:12:24 +00:00
drh
6ac7a58b14
Enhance the shell so that the ".schema" command works with case insensitive
...
LIKE patterns even with PRAGMA cache_sensitive_like=ON.
FossilOrigin-Name: b06bf3b3605a3c39cdfbb76c9a9f6b5202bb95ec
2011-11-04 00:35:56 +00:00
drh
b07028f71c
Add assert() statements and eliminate needless variable assignments in order
...
to get the clang scan-build utility to report zero problems against the
SQLite core. Clang's static analysis did find one real problem - but it was
in the command-line shell, not in the SQLite core.
FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
2011-10-14 21:49:18 +00:00
drh
b2acc3b145
Provide a complete prototype for isatty() in the command-line shell sources.
...
FossilOrigin-Name: 8bf13b036a77af9984f8f3d3a93da589fafd773f
2011-10-13 16:36:29 +00:00
drh
56197954dd
Change the command-line shell to do the ".dump" inside of a SAVEPOINT
...
rather than a transaction, since this allows it to be run from within
a transaction.
FossilOrigin-Name: 6df7343b4c3de9ad8221180dc959dbbdf54733c7
2011-10-13 16:30:13 +00:00
drh
36f7dd3f0b
Enable large-file support for fopen() and friends in the command-line shell.
...
Ticket [92af7da36b6fbd]
FossilOrigin-Name: eeeba4f0d2207ec26c60a405e2705e5d40022dbb
2011-10-13 16:02:17 +00:00
drh
58c803b7f0
Do the ".dump" command inside of a transaction to prevent other processes
...
from modifying the database while the dump is underway.
Ticket [2466653295e65]
FossilOrigin-Name: 1c00d5454c85dfddb6c628c3742b4ddeaad6423a
2011-10-13 13:34:04 +00:00
drh
2f464a045b
If errors are encountered while processing the ".dump" command in the
...
command-line shell, print error messages as comments in the output and
ROLLBACK at the end rather than committing.
Ticket [ee19e690ec9a5a2]
FossilOrigin-Name: 8a8dcd6bd043d82dc04b6ad0614c64d20ace8e5f
2011-10-13 00:41:49 +00:00
drh
f0693c8928
Put in code to defend against signed/unsigned character problems
...
in the command-line shell.
FossilOrigin-Name: b94a80a832777f0e639f6a81fcfe169bf970a8c0
2011-10-11 20:41:54 +00:00
drh
7b075e3a1c
In the shell, allow arbitrary table names on the ".import" command.
...
Ticket [d1d84037b90a449].
FossilOrigin-Name: f4dd32d30ed54f847319664cf749fd0b92b4af3f
2011-09-28 01:10:00 +00:00
drh
c78e6e4c4b
Add SQLITE_DBSTATUS_CACHE_HIT and _MISS to the ".stat" command in the shell.
...
FossilOrigin-Name: d279e1a309909a0897b6082753a0fadb5066c31a
2011-09-23 18:58:23 +00:00
mistachkin
a3b2ff5182
Silence harmless compiler warning about redefinition of the _CRT_SECURE_NO_WARNINGS macro by shell.c.
...
FossilOrigin-Name: 690220717f3d92d4fb7bd72226fc8d5f38f5fbcf
2011-09-16 20:16:36 +00:00
drh
6f25e89d27
Change the default chunk size on test_multiplex.c to 2147418112 bytes
...
(formerly 1073741824 bytes) and make the default configurable at compile-time
using SQLITE_MULTIPLEX_CHUNK_SIZE and at run-time using the "chunksize"
URI query parameter. Add support fo test_multiplex to the shell.
FossilOrigin-Name: e305b5a931374e2a1d2e66ea0a1248b9d4aecb19
2011-07-08 17:02:57 +00:00
drh
9fd301bb6a
Include more detailed version information in the command-line shell output.
...
FossilOrigin-Name: 049c3c42fdefea8de7ec7008871963e37ce2d7bc
2011-06-03 13:28:22 +00:00
drh
52784bd01a
Enable URI filenames in the command-line shell. Add a check to the
...
beginning of the shell to make sure it is compiled with the same
SQLite source and header.
FossilOrigin-Name: de58cb28387f44c35b1a81bdab853cafd938c1a6
2011-05-18 17:15:06 +00:00
drh
c6e4172a12
Updates to the OS/2 patches. This change also move the location of a global
...
variable declaration in shell.c which might effect other build targets.
FossilOrigin-Name: 73906b67dc920e0c36e68ef9a302be3b495e8e3a
2011-04-11 15:36:26 +00:00
shaneh
cef8368093
Fix a couple of MSVC compiler warnings;
...
FossilOrigin-Name: 748c9109c973e1d3e914adbe533f12af7783bfe4
2011-04-07 03:41:01 +00:00
drh
fcd71b6010
Suppress many harmless compiler warnings, mostly signed/unsigned comparisons
...
within asserts or unused parameters in extensions.
FossilOrigin-Name: 3eeb0ff78d04891b5fd1a3d99a9fb8cfbed77a81
2011-04-05 22:08:24 +00:00
drh
c8ba212665
In the shell, make sure the ".log" command has at least one argument.
...
FossilOrigin-Name: 1ed5e361ca7bfa9226fec265704394e0f228f0c5
2011-03-23 11:16:22 +00:00
drh
d416fe7995
Update the implementation of ".testctrl" in the command-line shell to use
...
a look-up table rather than a long sequence of if-elses. Shorten source
code lines of shell.c to 80 characters or less.
FossilOrigin-Name: 54bacb95dd6e2d6ac4971391a40484ccb9126d29
2011-03-17 16:45:50 +00:00
drh
2b625e243e
Add the -vfstrace option to the usage error message in the shell.
...
FossilOrigin-Name: baca45c549e1c144257ee657258939640120e094
2011-03-16 17:05:28 +00:00
drh
97ae8ffb7a
Add the VFS-trace shim.
...
FossilOrigin-Name: f49a9ef3387bd4453f5654ebe83fea445c03cf4d
2011-03-16 16:56:29 +00:00
drh
77ec9ba3f8
Fix an out-of-order variable declaration in shell.c.
...
FossilOrigin-Name: 725708465072fc63736e99610cc9cb0ac336145a
2011-03-15 18:35:44 +00:00
drh
a7e61d8b24
Add the new optional "unix-excl" VFS. This VFS grabs an exclusive lock on
...
the database preventing other processes from accessing it, but continues to
allow other database connections from the same process.
FossilOrigin-Name: 00051c3296e11211b2bb5ae28f016b17dca857d7
2011-03-12 17:02:57 +00:00
shaneh
96887e1619
Add .testctrl option to CLI.
...
FossilOrigin-Name: f85afa0ecc7b31d32659ae53e70771cd42abda38
2011-02-10 21:08:58 +00:00
drh
2a58e9cc32
Add test cases for the new lookaside hit and miss status outputs. Add
...
the output of lookaside hit and miss to the command-line shell statistics.
FossilOrigin-Name: b0888047bb6d9ac55e29b9224df2ff650728bb78
2010-12-21 21:28:38 +00:00
drh
9c88d68988
Add the "-heap" option to the command-line shell - to allocate a fixed heap
...
for use with SQLITE_ENABLE_MEMSYS5.
FossilOrigin-Name: 74fff692345fed4b247e2b34c1e63b4d50cddfd4
2010-12-17 14:03:01 +00:00
drh
e14cd93f2e
The command-line shell ignore errors in sqlite3_close() when shutting down.
...
FossilOrigin-Name: 925332c3d79f6252895ff1a367f795630619247e
2010-12-08 03:28:17 +00:00
drh
81d7fd13e4
Changes to the shell which should, in theory, allow it to work with
...
libeditline as an alternative to libreadline.
FossilOrigin-Name: e474fd9e7f89644a7840e33e9df03dbaa4dd28bd
2010-12-08 00:02:26 +00:00
drh
233f816b84
Improve the accuracy of the Pager heap usage estimate.
...
FossilOrigin-Name: ae89777e7f8bae2cdd3407395ea84c1b39577c4b
2010-07-28 17:36:11 +00:00
drh
29dfbe3b70
Record the pcache allocation size statistics even for pcache overflow
...
allocations. Adjust the wording on one of the stat output lines in
the shell.
FossilOrigin-Name: f9adf66ad575abbb63736caef27bd3c619e516a6
2010-07-28 17:01:24 +00:00
shaneh
642d8b87fe
Modify CLI to optionally display "stats".
...
FossilOrigin-Name: 419ce0ed89d10252492b2926817259899ee74e71
2010-07-28 16:05:34 +00:00
drh
72af0774f9
Make sure to do a clean shutdown of the library upon existing the shell
...
in order to remove WAL files.
FossilOrigin-Name: c1762dda00b8bdb7c3247617ac4cb654f1d95cf7
2010-05-06 20:19:55 +00:00
dan
0f831771c3
Modify the command line tool to disable all mutexes. The command line tool is single-threaded.
...
FossilOrigin-Name: 00e5679047a0a96dc4396aae5e061909faf3b81d
2010-03-03 07:23:12 +00:00
drh
127f9d75e2
Add the ".log" command to the shell. This shows that some errors are logged
...
multiple times and other errors are never logged at all.
FossilOrigin-Name: 6d910245ad0097521cf1619449cc3d202137b8b8
2010-02-23 01:47:00 +00:00
drh
5bd1d051e8
Remove the ".genfkey" command from the shell. We've had foreign-key support
...
in the core since 3.6.19. Anyone who still needs the simulated foreign-key
triggers can always generate them with an older version of the shell.
FossilOrigin-Name: c4401fc93b66c5339422d7e765a4a32b1ef96bdb
2010-02-23 01:01:58 +00:00
drh
a8c62df904
Fix a compiler warning in shell.c. Updates to comments in trigger.c.
...
FossilOrigin-Name: c727601eecd85a26dbd4fc36823d77bec34da3c3
2010-02-15 15:47:18 +00:00
shaneh
b7977c5539
Fix a problem with the CLI where not all SQL commands were being echoed.
...
Added tests of same to tools/shell2.test. Ticket [eb620916be].
FossilOrigin-Name: 7080ae3bc3828168483ac23d5b8976d67ea5089e
2010-01-18 18:17:10 +00:00
dan
4564cedd80
Fix a problem in the shell tool. In some cases sqlite3_errmsg() was being called before sqlite3_finalize(), causing error messages to be more generic than they should be.
...
FossilOrigin-Name: e5d07045fabe0803715cfb291aa9e971235cb08a
2010-01-05 04:59:56 +00:00
shaneh
13b3602e1c
In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.
...
FossilOrigin-Name: b1b48be1cf55f3179eab8824cf5fee8100518845
2009-12-17 21:07:15 +00:00
shaneh
5fc250100e
Modified CLI to raise an error when extra command line options are passed.
...
Added tests to verify correct handling, as well as other basic handling
of command line options. Ticket [f5cb008a65].
FossilOrigin-Name: 09b4f19f100fe82a8321b9ded99e679b7eedc1fa
2009-11-11 04:17:07 +00:00
shaneh
ac81cd71a5
Fix for datbase name being ignored with the -batch option in the CLI. Ticket [aeff892c57].
...
FossilOrigin-Name: 8097c64acfc74c913bc6d7d631bc1423c90df93f
2009-11-10 17:07:30 +00:00
drh
c81c11f62c
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
...
FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
2009-11-10 01:30:52 +00:00
shaneh
e2aa9d7192
Improved shell "dot" command argument handling. Ticket [f12a9eeedc].
...
FossilOrigin-Name: 9fb699193378bf812ef97889adc0b1a98ad56d5b
2009-11-06 17:20:17 +00:00
shane
f69573d33e
In shell, modified to not print informational messages during startup while in "batch mode".
...
Ticket [2cb66577f6].
FossilOrigin-Name: e3898e25cf0ea870612eeaca6af2396f0eab0e07
2009-10-24 02:06:14 +00:00