Commit graph

549 commits

Author SHA1 Message Date
Simon Willison
ba2681e769 Fixed two typos in the release notes 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
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
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
3e1d467c52 Last minute changelog for register_commands() for 3.34
Refs #567, #574, #575
2023-07-22 16:22:18 -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
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
Simon Willison
80b5fa7f12 Documentation for replace=True/ignore=True, refs #568 2023-07-22 12:19:01 -07:00
Simon Willison
b379a2a0c3 Added pluggy and first hook, register_commands - refs #569, #567 2023-07-22 12:04:31 -07:00
Simon Willison
7e48502b5a Update CLI reference docs for -e, refs #570 2023-07-22 11:37:53 -07:00
Simon Willison
f7af23837d --empty-null option for CSV and TSV imports, closes #563 2023-07-02 22:42:26 -07:00
Simon Willison
8c739558f7 --stop-after option, closes #561 2023-06-27 11:50:04 -07:00
Simon Willison
9d38925cde Release 3.33
Refs #235, #559, #560

Refs https://github.com/simonw/llm/issues/60

Refs https://github.com/nalgeon/sqlean.py/issues/1
2023-06-25 18:31:22 -07:00
Simon Willison
f5c63088e1
Use sqlean if available in environment (#560)
Closes #559
Closes #235

Refs https://github.com/simonw/llm/issues/60

- Uses `sqlean` in place of `sqlite3` if `sqlean.py` is installed
- Uses `sqlite-dump` if available and `conn.iterdump()` does not exist
- New `with db.ensure_autocommit_off()` method for ensuring autocommit is off, used by `enable_wal()` and `disable_wal()`.
2023-06-25 16:25:51 -07:00
Simon Willison
2747257a33 Fixed link in changelog 2023-05-21 14:11:54 -07:00
Simon Willison
6fb32d27ae Release 3.32.1
Refs #551, #552
2023-05-21 14:09:46 -07:00
Simon Willison
87bddef8fd Documented bash/zsh completion, closes #552 2023-05-21 14:03:32 -07:00
Simon Willison
8188acc1f1 Fix for missing csv Pygments support, refs #551 2023-05-21 14:03:10 -07:00
Simon Willison
d8fe1b0d89
Reformatted CLI examples in docs
Closes #551
2023-05-21 13:57:22 -07:00
Simon Willison
e240133b11 Release 3.32
Refs #544, #545, #547, #548
2023-05-21 11:53:44 -07:00
Simon Willison
718b0cba9b
Experimental TUI powered by Trogon
* sqlite-utils tui command if Trogon is installed, closes #545
* Documentation for trogon TUI
* Screenshot of TUI
* Ignore trogon mypy error
* only run flake8 on Python 3.8 or higher, closes #550
2023-05-21 11:41:56 -07:00
Simon Willison
d2a7b15b2b
Analyze tables options: --common-limit, --no-most, --no-least
Closes #544
2023-05-21 09:19:30 -07:00
Simon Willison
e047cc32e9
backwards-incompatible, not compatible 2023-05-09 14:08:31 -07:00
Simon Willison
b3b100d7f5 Release 3.31
Refs #509, #517, #520, #525, #527, #532, #534, #536, #537, #538, #539
2023-05-08 15:33:57 -07:00
Simon Willison
9662d4ce26 Updated cog, refs #527 2023-05-08 14:05:30 -07:00
Simon Willison
e0ec4c3451 --no-skip-false option, plus docs - closes #527 2023-05-08 14:03:20 -07:00
Simon Willison
373b7886d2 --raw-lines option, closes #539 2023-05-07 11:26:14 -07:00
Simon Willison
c0251cc927
Link /latest/ to /stable/ - refs #388 2023-03-26 16:42:01 -07:00
Simon Willison
6cd0fd2b4c Fix for Sphinx bug, closes #533, refs #531 2023-03-12 14:25:26 -07:00
Simon Willison
ebe504ab21 Clarify column types in create-table help 2022-11-29 09:03:35 -08:00
Simon Willison
52ddb0b9ff
Rename utility functions to library 2022-11-15 07:53:38 -08:00
Simon Willison
0d45ee1102 Release 3.30
Refs #480, #483, #485, #495, #500, #502, #504
2022-10-25 15:21:34 -07:00
Simon Willison
eb67fc69a2 Run cog -r against latest tabulate, refs #501 2022-10-18 11:08:34 -07:00
Simon Willison
34e75ed0dd sqlite_utils.utils.flatten() function, closes #500 2022-10-18 11:00:35 -07:00
Simon Willison
d792dad1cf
Clarify wording 2022-09-26 19:23:17 -07:00