Simon Willison
c872d27bb3
Use REAL not FLOAT as SQLite column type ( #680 )
...
* Use REAL not FLOAT as SQLite column type, refs #645
* Fix for REAL columns by CSV --detect-types
Refs https://github.com/simonw/sqlite-utils/issues/645#issuecomment-3568947189
* Removed note about strict and REAL
2025-11-23 21:37:59 -08:00
Simon Willison
fb93452ea8
Use double quotes not braces for tables and columns ( #678 )
...
Closes #677
2025-11-23 20:43:26 -08:00
Simon Willison
bf1ac778a3
Use uv in the Justfile, refs #674
2025-11-23 19:50:06 -08:00
Simon Willison
96fab69256
Removed convert skip_false and --skip-false, closes #542
2025-11-23 15:40:28 -08:00
Simon Willison
4f12c7a452
Port from setup.py to pyproject.toml
...
Refs #676 , closes #675
2025-11-23 14:07:11 -08:00
Simon Willison
7ffd5052e9
table.insert_all() and table.upsert_all() now take generators of lists/tuples
...
Closes #672 , PR #673
2025-11-23 12:17:23 -08:00
Simon Willison
370318c695
Lowercase for geometry types
...
Cog test failed in CI, but these are case insensitive anyway.
2025-10-01 13:52:10 -07:00
Simon Willison
094b010fd8
db.table() only returns tables, added db.view()
...
* db.table() only returns tables, added db.view(), closes #657
* Massive documentation update for db.table()
Refs #656
2025-05-08 23:19:36 -07:00
Simon Willison
d892d2ae49
Fix underline length, refs #656
2025-05-08 20:53:24 -07:00
Simon Willison
9e458dea7d
Release 0.4a0
...
Refs #646 , #648 , #652 , #654 , #656
2025-05-08 20:51:48 -07:00
Simon Willison
8e7d018fa2
Use ON CONFLICT for upsert, refs #652
...
* New upsert implementation, refs #652
* supports_strict now caches on self._supports_strict
PR: https://github.com/simonw/sqlite-utils/pull/653
2025-05-08 20:37:49 -07:00
Simon Willison
72f6c820f6
Small documentation updates to fix warnings
2025-05-07 17:54:29 -07:00
Simon Willison
0e4e270d44
Test against multiple SQLite versions ( #654 )
...
* Test against pre-upsert SQLite 3.23.1
Borrowed from 8f86d2af6
* Try this on Python 3.9
* select ... from pragma_function_list()
Refs https://github.com/simonw/sqlite-utils/pull/654#issuecomment-2860898278
* Fix spelling error
* Compatible with latest black
* Skip plugin test that needs pragma_function_list
Refs https://github.com/simonw/sqlite-utils/pull/654#issuecomment-2860924225
* Ran cog
2025-05-07 17:49:50 -07:00
Simon Willison
88a83f0b7e
Link to JSON Lines instead
...
ndjson.org has an expired domain.
2025-05-04 22:50:10 -07:00
Simon Willison
0aefbb634d
Removed trogon feature in favor of sqlite-util-tui
...
Refs #648 , #545
2025-01-10 17:15:02 -08:00
Simon Willison
04107d3fea
Remove note from docs about 3.8 and deterministic, closes #646
2024-11-23 14:49:15 -08:00
Simon Willison
9d7da0606e
Release 3.38
...
Refs #628 , #633 , #643 , #644
2024-11-23 14:38:40 -08:00
Simon Willison
4dc2e2e9c8
Use REAL for floating point columns if table is strict, closes #644
...
Refs #645
2024-11-23 14:27:21 -08:00
liunux4odoo
7423296ec7
include_rank parameter for Table.search
...
* Add `include_rank` parameter to `Table.search`
* Test for .search(include_rank)
* Docs for table.search(include_rank)
https://github.com/simonw/sqlite-utils/pull/628
Refs #480
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2024-11-23 12:34:27 -08:00
Mat Miller
42230709f7
Recreate indexes when calling transform when possible ( #634 )
...
* Recreate indexes when calling transform when possible and raise an error when they cannot be retained automatically
* Docs for sqlite_utils.db.TransformError
Co-authored-by: Simon Willison <swillison@gmail.com>
2024-11-23 12:17:15 -08:00
Gavin Wahl
cbddfb28f9
typo in command name ( #640 )
2024-11-09 08:31:21 -08:00
Simon Willison
21e80dfbcf
It's return_db, not _return_db - refs #643
2024-11-08 12:13:05 -08:00
Simon Willison
2258b431d4
Neater return_db pattern for reusing memory command, closes #643
2024-11-08 12:11:17 -08:00
Simon Willison
8906f57740
Hack to support reuse of memory command, closes #643
2024-11-08 11:17:17 -08:00
Gert Goet
4c2628873c
Fix typo ( #639 )
2024-09-03 01:27:16 -07:00
Simon Willison
8b004b2406
Release 3.37
...
Refs #618 , #619 , #620 , #621 , #630 , #632
2024-07-18 11:43:07 -07:00
Thomas
896411099e
Documented the use of delete_where ( #630 )
...
Documented the use of delete_where, as shown in https://github.com/simonw/sqlite-utils/issues/159
2024-07-18 11:34:24 -07:00
Simon Willison
1feb0c4271
Docs for insert with multiple --pk, refs #621
2024-03-16 17:27:18 -07:00
Simon Willison
23be5be1dc
create-table now supports multiple --pk, refs #620
2024-03-16 17:05:39 -07:00
Simon Willison
5bd7aec4d2
Test against Python 3.13 pre-release ( #619 )
...
* Test against Python 3.13 pre-release
* Skip tests for numpy on Python 3.13
Refs https://github.com/simonw/sqlite-utils/pull/619#issuecomment-1998798451
* Try to avoid Python 3.13 cog differences
* Hide \b characters in cli-reference
* Fixed .rST warning
2024-03-14 21:14:10 -07:00
Simon Willison
885a0b321d
Release 3.36
...
Refs #344 , #604 , #606
2023-12-07 21:31:03 -08:00
Simon Willison
f29189a3dd
db.supports_strict docs, closes #344
2023-12-07 21:22:27 -08:00
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
...
Refs #433 , #522 , #596 , #598
2023-11-03 18:03:42 -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
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
2023-09-08 17:49:55 -07:00
Simon Willison
5d123f031f
Fixed bug in replacing foreign key constraints example
2023-09-06 15:33:06 -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
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