Taj Khattra
1500c19bd0
Add more STRICT table support ( #604 )
...
* Add more STRICT table support per https://github.com/simonw/sqlite-utils/issues/344#issuecomment-982014776 .
* Make `table.transform()` preserve STRICT mode.
* Fix mypy failures in PR #604
* Link to SQLITE strict page in a few places
2023-12-07 21:05:27 -08:00
Simon Willison
88bd372205
str, int, bytes aliases for column types, closes #606
2023-12-06 10:49:21 -08:00
Simon Willison
9286c1ba43
Fixed some markup bugs
2023-11-03 20:55:19 -07:00
Simon Willison
c64c7d1b8c
More 3.35.2 release notes
...
3.35.2
Refs #433 , #522 , #596 , #598
2023-11-03 18:03:42 -07:00
Simon Willison
78d8dd06d3
Add 3.12 to PyPI metadata
2023-11-03 17:59:09 -07:00
Simon Willison
08c8bb7cfb
Test against Python 3.12
...
First tested in #591
2023-11-03 17:58:31 -07:00
Simon Willison
b2e0cd066d
Test and docs for timedelta support, refs #522
2023-11-03 17:56:34 -07:00
Simon Willison
8d186d33c2
Release 3.35.2
...
Refs #599 , #600
2023-11-03 17:51:46 -07:00
Harald Nezbeda
347fdc865e
Map datetime.timedelta to text columns, closes #522
2023-11-03 17:49:50 -07:00
Luke Plant
37273d7f63
Fixed issue #433 - CLI eats cursor ( #598 )
...
The issue is that underlying iterator is not fully consumed within the body of
the `with file_progress()` block. Instead, that block creates generator
expressions like `docs = (dict(zip(headers, row)) for row in reader)`
These iterables are consumed later, outside the `with file_progress()` block,
which consumes the underlying iterator, and in turn updates the progress bar.
This means that the `ProgressBar.__exit__` method gets called before the last
time the `ProgressBar.update` method gets called. The result is that the code to
make the cursor invisible (inside the `update()` method) is called after the
cleanup code to make it visible (in the `__exit__` method).
The fix is to move consumption of the `docs` iterators within the progress bar block.
(An additional fix, to make ProgressBar more robust against this kind of misuse, would
to make it refusing to update after its `__exit__` method had been called, just
like files cannot be `read()` after they are closed. That requires a in the
click library).
2023-11-03 17:40:29 -07:00
Simon Willison
b92ea4793c
Fixed spelling of wrappping
2023-11-03 17:31:49 -07:00
Mike Coats
4b3c83cd9f
Add spatialite arm64 linux path
...
Issue: #599
2023-11-03 17:31:49 -07:00
Simon Willison
622c3a5a7d
Fixed Markdown that should be rST
2023-09-08 18:25:46 -07:00
Simon Willison
60900bd80a
Release notes for 3.35.1, refs #592
3.35.1
2023-09-08 17:49:55 -07:00
Simon Willison
cb034621fd
Release 3.35.1
...
Refs #592
2023-09-08 17:45:45 -07:00
Simon Willison
1c6ea54338
.transform() now preserves rowid values
...
* .transform() now preserves rowid values, refs #592
* Test transform rowids against different table types, closes #592
2023-09-08 17:45:30 -07:00
Simon Willison
5d123f031f
Fixed bug in replacing foreign key constraints example
2023-09-06 15:33:06 -07:00
Simon Willison
02e56d1158
click-default-group>=1.2.3
...
Refs:
- https://github.com/click-contrib/click-default-group/issues/21
2023-09-05 19:34:53 -07:00
Simon Willison
1260bdc7bf
Link to sqlite-utils-fast-fks from changelog
2023-08-18 10:47:10 -07:00
Simon Willison
98cd11a81b
Link docs to sqlite-utils-fast-fks
2023-08-18 10:45:12 -07:00
Simon Willison
7c1618e4b1
Promote plugins in the README
2023-08-17 19:28:08 -07:00
Simon Willison
4aea34065c
Run codespell as part of 'just lint'
2023-08-17 19:09:22 -07:00
Simon Willison
ba2681e769
Fixed two typos in the release notes
3.35
2023-08-17 19:05:15 -07:00
Simon Willison
87c6ceb3a4
Release 3.35
...
Refs #577 , #581 , #585
2023-08-17 19:01:48 -07:00
Simon Willison
56093de078
sqlite-utils transform --add-foreign-key option, closes #585
2023-08-17 18:51:04 -07:00
Simon Willison
70717dc0e1
Remove unneccessary warning, refs #577 , #585
2023-08-17 18:28:09 -07:00
Simon Willison
d2bcdc00c6
Swapped the order of a bunch of pytest comparisons
...
When I wrote this I thought constant == value was a better assertion. I no longer think that.
2023-08-17 18:05:13 -07:00
Simon Willison
b4735f794a
Remove test.utils.collapse_whitespace, closes #583
2023-08-17 17:59:09 -07:00
Simon Willison
509857ee87
.add_foreign_keys() uses .transform() instead of PRAGMA writable_schema
...
Closes #577
This should solve all sorts of problems seen by users of platforms that throw errors on writable_schema.
Also added `add_foreign_keys=` and `foreign_keys=` parameters to `table.transform()`.
2023-08-17 17:48:08 -07:00
Simon Willison
993029f466
flake8 fixes
2023-08-17 17:19:02 -07:00
Simon Willison
1dc6b5aa64
Note about execute_plugins=False, refs #575
2023-08-07 11:47:34 -07:00
Simon Willison
619cea8681
sqlite-utils convert --pdb option, closes #581
2023-07-26 14:06:05 -07:00
Simon Willison
5e9a02153d
Fix bug with --editable
...
See also: https://github.com/simonw/llm/issues/136
2023-07-25 22:20:49 -07:00
Simon Willison
37e374e05a
Improved convert() function documentation
2023-07-25 07:47:44 -07:00
Simon Willison
fba26d3564
Typo in release notes
2023-07-24 22:54:13 -07:00
Simon Willison
8bee145886
Link 3.34 notes to new blog entry
2023-07-24 10:22:20 -07:00
Simon Willison
13ebcc575d
Backfilled release notes for 0.2, 0.3, 0.3.1 - closes #576
2023-07-22 22:48:14 -07:00
Simon Willison
c728c25555
Undo change which broke the tests
3.34
2023-07-22 16:25:14 -07:00
Simon Willison
3e1d467c52
Last minute changelog for register_commands() for 3.34
...
Refs #567 , #574 , #575
2023-07-22 16:22:18 -07:00
Simon Willison
778dad789e
More robust _called_from_test pattern
2023-07-22 16:21:27 -07:00
Simon Willison
e337a88b45
Tweaks to prepare_connection() example in docs, refs #574
2023-07-22 16:13:46 -07:00
Simon Willison
374a816c72
Database(..., execute_plugins=False) mechanism, refs #575
2023-07-22 16:06:11 -07:00
Alex Garcia
3f80a02698
prepare_connection plugin hook
...
Closes:
- #574
Refs #567
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2023-07-22 15:59:08 -07:00
Simon Willison
091c63cfbf
Release 3.34
...
Refs #561 , #563 , #564 , #565 , #567 , #568 , #569 , #570 , #571
2023-07-22 15:47:56 -07:00
Simon Willison
249d7de7b2
Link to docs on distributing plugins, refs #567
2023-07-22 15:45:23 -07:00
Simon Willison
61aaa69815
.transform(..., keep_table=name) parameter, closes #571
...
Also type hints for the transform_sql() method
2023-07-22 15:32:09 -07:00
Simon Willison
2c12c01346
Caling .transform() also reformats the schema, closes #564
2023-07-22 15:15:30 -07:00
Simon Willison
fedd477e01
Don't attempt tui stuff on Python 3.7, refs #572
2023-07-22 15:11:38 -07:00
Simon Willison
18f190e283
sqlite-utils rename-table command, refs #565
2023-07-22 12:48:04 -07:00
Simon Willison
82e8cd3667
db.rename_table() method, refs #565
2023-07-22 12:38:31 -07:00