Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add support for -C to ".ar x". |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sqlar-shell-support |
Files: | files | file ages | folders |
SHA3-256: |
8cd70960c5ddf0d0b2c40b8b6af4ce6b |
User & Date: | dan 2017-12-09 18:28:22.916 |
Context
2017-12-11
| ||
20:22 | Enhance virtual table "fsdir" in ext/misc/fileio.c. Add support for "-C" to the shell command's ".ar c" command. (check-in: 0394889afe user: dan tags: sqlar-shell-support) | |
2017-12-09
| ||
18:28 | Add support for -C to ".ar x". (check-in: 8cd70960c5 user: dan tags: sqlar-shell-support) | |
17:58 | Improve parsing of ".ar" commands. Add new test file for the same. (check-in: 840401cc8c user: dan tags: sqlar-shell-support) | |
Changes
Changes to src/shell.c.in.
︙ | |||
4231 4232 4233 4234 4235 4236 4237 | 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 | - + - + + + + + + + + + + + + + + + | /* ** Implementation of .ar "eXtract" command. */ static int arExtractCommand(ShellState *p, ArCommand *pAr){ const char *zSql1 = |
︙ |
Changes to test/shell8.test.
︙ | |||
30 31 32 33 34 35 36 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - + + + - + | file mkdir [file dirname $path] set fd [open $path w] puts -nonewline $fd $d close $fd } } |
︙ | |||
73 74 75 76 77 78 79 80 81 82 83 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | + + + + + + + | catchcmd test_ar.db ".ar c ar1" file delete -force ar1 catchcmd test_ar.db ".ar x" dir_to_list ar1 } $expected do_test 1.2 { file delete -force ar3 file mkdir ar3 catchcmd test_ar.db ".ar xvC ar3" dir_to_list ar3/ar1 } $expected finish_test |