Simon Willison
47af71f603
Release 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
7eda0532e8
Consistent usage of db["dogs"], closes #185
2020-10-11 17:13:35 -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
...
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
0ca5585fcb
Clarify why you would want transform_sql()
2020-09-23 13:16:01 -07:00
Simon Willison
1ebffe1dbe
Correction: SQLite ALTER TABLE can rename columns
2020-09-22 20:09:42 -07:00
Simon Willison
9f59a7a325
Fixed typo in release notes, refs #170
2020-09-22 17:35:52 -07:00
Simon Willison
dcdef136db
Release 2.20
...
Refs #114 , #42 , #162 , #164 , #165 , #167 , #169 . Closes #170
2020-09-22 17:31:15 -07:00
Simon Willison
5c4d58d152
Progress bar for "sqlite-utils extract", closes #169
2020-09-22 17:02:29 -07:00
Simon Willison
55cf928f73
sqlite-utils extract, closes #42
2020-09-22 16:37:39 -07:00
Simon Willison
71782311ce
New .rows_where(select=) argument
2020-09-22 16:10:14 -07:00
Simon Willison
c3210f2ffb
Added table.extract(rename=) option, refs #42
2020-09-22 15:57:02 -07:00
Simon Willison
f8553799d3
table.extract() method, refs #42
2020-09-22 15:20:18 -07:00
Simon Willison
752d261229
Implemented sqlite-utils transform command, closes #164
2020-09-22 00:47:58 -07:00
Simon Willison
f8e10df00e
Keyword only arguments for transform()
...
Also renamed columns= to types=
Closes #165
2020-09-21 23:39:10 -07:00
Simon Willison
987dd123f2
table.transform() method - closes #114
2020-09-21 21:20:01 -07:00
Simon Willison
482477585a
@db.register_function decorator, closes #162
2020-09-21 17:31:43 -07:00
Simon Willison
ef882986d0
Release 2.19
...
Refs #112 , #157 , #160
2020-09-20 15:22:56 -07:00
Simon Willison
e23eedb4ce
ignore=True argument for add_foreign_key, closes #112
...
Also --ignore for add-foreign-key command
Plus table.add_foreign_key(...) now returns self, allowing more chaining
2020-09-20 15:17:25 -07:00
Simon Willison
ecb50c8f76
.enable_fts(..., replace=True) argument, closes #160
2020-09-20 15:05:46 -07:00
Simon Willison
3cc1944e53
sqlite-utils add-foreign-keys command, closes #157
2020-09-20 13:14:25 -07:00
Tom V
7805d53bcf
Fix accidental mega long line in docs ( #158 )
...
Thanks @tomviner
2020-09-15 23:21:42 -07:00
Simon Willison
6be6126364
Release 2.18
...
Refs #145 . #155
2020-09-08 16:37:28 -07:00
Simon Willison
32f1badfec
Tracer example using print, refs #150
2020-09-08 16:27:55 -07:00
Simon Willison
176f4e0ef4
sqlite-utils rebuild-fts command, closes #155
2020-09-08 16:16:03 -07:00
Simon Willison
76548596a6
optimize command now accepts optional tables, refs #155
2020-09-08 15:34:55 -07:00
Simon Willison
64799df78b
.optimize() no longer cleans up _docsize
...
This isn't necessary any more since the new .rebuild_fts()
method can achieve the same thing.
Refs #155 , #153
2020-09-08 15:18:12 -07:00
Simon Willison
4c0f79398f
table.rebuild_fts() method, refs #155
2020-09-08 15:09:25 -07:00
Simon Willison
deb2eb013f
Release notes for 2.17
2020-09-07 15:08:12 -07:00
Simon Willison
cf2cb244fa
Tracer mechanism for showing underlying SQL queries
...
* Pass a tracer= function to Database constructor
* New db.tracer() contextmanager
* Neater SQL indentation, because tracer means it could be visible now
* New db.execute() and db.executescript() methods
Closes #150
2020-09-07 14:56:59 -07:00
Simon Willison
3e87500e15
table.optimize() deletes junk docsize rows
...
Closes #153 . Closes #149 .
2020-09-07 14:16:13 -07:00
Simon Willison
de10590344
recursive_triggers=on by default, closes #152
...
Refs #149
2020-09-07 13:45:06 -07:00
Simon Willison
0e62744da9
Correct import path for AlterError exception
2020-09-02 13:29:46 -07:00
Simon Willison
e0cd430e89
Docs for sqlite_utils.AlterError in add_foreign_keys()
2020-09-02 13:17:01 -07:00
Simon Willison
1a9dab86fe
Release 2.16.1
...
Refs #139 , #142 , #143
2020-08-28 15:45:11 -07:00
Simon Willison
01c7784be5
CI is now GitHub Actions, closes #143
2020-08-28 15:41:29 -07:00
Simon Wiles
947bb7626f
insert_all(..., alter=True) works for columns introduced after first 100 records
...
* Insert all columns for every chunk
* Update unit test to reflect new behaviour
* Test that exception is raised
* Update documentation
Closes #139 . Thanks, Simon Wiles!
2020-08-28 15:30:13 -07:00
Simon Willison
ea87c2b943
Release 2.16
...
Refs #134 , #135
2020-08-21 14:02:29 -07:00
Simon Willison
7e9aad7e1c
--load-extension option for sqlite-utils query, closes #134
2020-08-21 13:54:11 -07:00
Simon Willison
bf4c6b7c82
find_spatialite() utility function, closes #135
2020-08-21 13:30:02 -07:00
Simon Willison
c8d7969192
Release 2.15.1
...
Refs #133
2020-08-12 09:59:48 -07:00
Simon Willison
66ed36258a
Renaming from master to main
2020-08-10 14:04:32 -07:00
Simon Willison
7536a5a0f6
Release 0.15
...
Refs #132
2020-08-10 12:06:02 -07:00
Simon Willison
2d2d724e32
Tools for enabling and disabling WAL, closes #132
2020-08-10 11:59:21 -07:00
Simon Willison
957f8c9b4c
2.14.1 release notes
2020-08-05 23:31:11 -07:00