Simon Willison
47abca0764
Update README for 3.0 release, refs #194
2020-11-08 09:16:25 -08:00
Simon Willison
ce2b07c358
Updated docs for .search_sql() method
...
Also improved indentation of generated SQL queries. Refs #197
2020-11-08 09:04:37 -08:00
Simon Willison
79109939c3
search --limit now defaults to everything, refs #192
2020-11-08 09:00:43 -08:00
Simon Willison
c5a798c15f
.search_sql() fully respects columns=, closes #201
...
Refs #192 and #197
2020-11-08 08:53:53 -08:00
Simon Willison
a8acafbfe0
Fixed RST typo
2020-11-08 08:38:02 -08:00
Simon Willison
60f4aff9b0
Link changelog badge to /en/latest/changelog.html
...
That way you can see the changelog for alpha releases. Refs #194 .
2020-11-06 18:23:56 -08:00
Simon Willison
6785e89cc0
Release 3.0a0
...
3.0a0
Refs #192 #193 #194 #196 #199 #198 #197 #200
2020-11-06 17:22:24 -08:00
Simon Willison
cbc9841646
Docs for .search() and .search_sql(), refs #197
2020-11-06 16:58:57 -08:00
Simon Willison
bce1872109
order= is now order_by=, refs #197
2020-11-06 16:43:33 -08:00
Simon Willison
2bc1e9c5b4
Added test for .search_sql() and FTS4, refs #197
2020-11-06 16:32:40 -08:00
Simon Willison
6863dc2677
sqlite-utils rows -c, closes #200
2020-11-06 16:28:41 -08:00
Simon Willison
309ae84336
'-f' must now always be specified as '--fmt', refs #194
2020-11-06 16:19:04 -08:00
Simon Willison
afee15f04b
--tsv output option, closes #193
2020-11-06 16:09:42 -08:00
Simon Willison
771bd81b62
search_sql() returns most relevant first, not least
...
Refs #192
2020-11-06 15:50:02 -08:00
Simon Willison
63e2bdf18d
Added test for sqlite-utils search, refs #192
2020-11-06 15:40:42 -08:00
Simon Willison
d411fba1f4
.search() works for FTS4, yields dicts
...
Closes #198 , refs #197
2020-11-06 10:30:41 -08:00
Simon Willison
476825a224
How to use register_function as a method, not a decorator
2020-11-06 10:30:41 -08:00
Simon Willison
27b67f1cae
@db.register_function(..., replace=True), closes #199
2020-11-06 10:30:41 -08:00
Simon Willison
7c22a64fb6
.search() now works differently for FTS4 v.s. FTS5
2020-11-06 10:30:41 -08:00
Simon Willison
de39e8db1e
Refactored to table.search_sql() method, added --limit
2020-11-06 10:30:41 -08:00
Simon Willison
2c00567aac
sqlite-utils search WIP, refs #192
2020-11-06 10:30:41 -08:00
Simon Willison
59d8689ed0
table.virtual_table_using property, closes #196
2020-11-04 19:53:45 -08:00
Simon Willison
43eae8b193
Release 2.23
...
2.23
Refs #189 , #173 , #191
2020-10-28 14:38:10 -07:00
Simon Willison
0789bad8f7
@db.register_function(deterministic=True), closes #191
2020-10-28 14:30:58 -07:00
Simon Willison
f99a236529
Progress bar for sqlite-utils insert command, closes #173
2020-10-27 11:16:02 -07:00
Simon Willison
c7e5dd6451
Applied latest Black
2020-10-27 09:26:01 -07:00
Adam Wolf
f045d8559a
Allow iterables other than lists in m2m records ( #189 )
...
* Allow iterables other than Lists in m2m records
* Add test for iterable m2m records
Thanks, @adamwolf!
2020-10-27 09:24:21 -07:00
Simon Willison
2771ab96e7
Test showing stdin inserts work
2020-10-25 20:05:56 -07:00
Simon Willison
e4f1c7b936
python_requires=">=3.6"
...
Inspired by https://github.com/simonw/datasette/pull/1044
2020-10-23 14:19:30 -07:00
Simon Willison
55133b5966
Link to sqliteutils tag on my blog
2020-10-21 11:08:28 -07:00
Simon Willison
0b5edd6469
Added basic tests using hypothesis, closes #180
2020-10-18 21:51:50 -07:00
Simon Willison
47af71f603
Release 2.22
...
2.22
Refs #182 #137 #136 #184 #181
2020-10-16 12:30:25 -07:00
Simon Willison
21ff60e3b1
--load-extension= for many more commands, closes #137
...
Also added --load-extension=spatialite shortcut, closes #136
2020-10-16 12:14:22 -07:00
Simon Willison
2c541fac35
--encoding option for non-utf8 CSV/TSV, closes #182
2020-10-16 10:18:46 -07:00
Simon Willison
7c0ef116ed
pk=['id'] now equivalent to pk='id', closes #181
2020-10-14 14:59:38 -07:00
Simon Willison
7eda0532e8
Consistent usage of db["dogs"], closes #185
2020-10-11 17:13:35 -07:00
Simon Willison
4e8e157b5d
Test against Python 3.9 on publish
2020-10-07 18:45:07 -07:00
Simon Willison
8e91de8e4e
Python 3.9 ( #184 )
...
* Test against Python 3.9
* Programming Language :: Python :: 3.9 classifier
* Python versions badge
2020-10-07 18:44:05 -07:00
Simon Willison
7f4fe9190c
Configure code scanning, refs #183
2020-09-30 15:17:23 -07:00
Shakeel Mahate
cada1017ed
Fixed incorrect example in README
2020-09-30 13:29:27 -07:00
Simon Willison
94fc62857e
Demonstrate extract= creates correct foreign keys
...
Closes #138
2020-09-24 15:46:46 -07:00
Simon Willison
cda559f835
Include --column-order in combined example, refs #176
2020-09-24 13:33:19 -07:00
Simon Willison
a57acf84f7
Release 2.21
...
2.21
Refs #172 , #175 , #176 , #177
2020-09-24 09:44:30 -07:00
Simon Willison
5a63b9e88c
Simplify drop-foreign-key, and drop_foreign_keys, closes #177
2020-09-24 09:19:07 -07:00
Simon Willison
d13c123100
sqlite-utils transform --column-order option, closes #176
2020-09-24 09:11:53 -07:00
Simon Willison
725f206949
Documentation for .transform(column_order=), closes #175
2020-09-24 09:00:50 -07:00
Simon Willison
022cdd97a9
Much, much faster extract() implementation
...
Takes my test down from ten minutes to four seconds!
* Removed unnecessary update() optimization
* Added column_order= to .transform() and .transform_sql()
* Tests for reusing lookup table in extract()
Closes #172
2020-09-24 08:43:55 -07:00
Simon Willison
5eb14d1c1f
Added several missing 'return self' to support chaining
2020-09-24 07:51:36 -07:00
Simon Willison
0ca5585fcb
Clarify why you would want transform_sql()
2020-09-23 13:16:01 -07:00
Simon Willison
66d506587e
Some optimizations for extract()
...
Refs #172 - seems to give me about 20% speedup.
2020-09-23 13:12:19 -07:00