Simon Willison
cb70f7d109
Corrected .views_names() -> .view_names()
2019-08-26 07:04:14 +02:00
Simon Willison
68a5cb1b8e
Corrected .table_views() -> .view_names()
2019-08-26 07:03:22 +02:00
Simon Willison
53124bc02f
Release 1.10
2019-08-23 15:24:04 +03:00
Simon Willison
9faa982226
Ability to introspect and run queries against views ( #55 )
...
* db.views_names() method and and db.views property
* Separate View and Table classes, both subclassing new Queryable class
* view.drop() method
* Updated documentation
2019-08-23 15:19:41 +03:00
Simon Willison
0e7b461eb3
Fixed typo
2019-08-04 07:13:31 +03:00
Simon Willison
6ac0a5df5d
Release 1.9
2019-08-04 06:35:30 +03:00
Simon Willison
243bcaa1ac
Documentation for .m2m() table method
2019-08-04 05:29:19 +03:00
Simon Willison
e1021030dd
Release 1.8
2019-07-28 18:41:42 +03:00
Simon Willison
5986083746
Documentation for table.update() method
2019-07-28 18:03:44 +03:00
Simon Willison
a6749cdf43
Release 1.7.1
2019-07-28 15:00:51 +03:00
Simon Willison
535a5ea476
Documentation and tests for table.drop() method
2019-07-28 14:57:02 +03:00
Simon Willison
9b7be79c86
Release 1.7 - with lookup table support
2019-07-24 08:50:41 +02:00
Simon Willison
941d281aee
extracts= table parameter, closes #46
2019-07-23 10:00:42 -07:00
Simon Willison
5805024316
Implemented table.lookup(...), closes #44
...
* Add pk column if missing from insert
* Implemented table.lookup(...)
2019-07-23 06:06:59 -07:00
Simon Willison
034d498b31
Support Database(memory=True) for in-memory databases
2019-07-22 17:12:54 -07:00
Simon Willison
58db40d67c
Better __repr__ for tables
2019-07-22 17:05:51 -07:00
Simon Willison
127a836054
Documented new table configuration options via .table()
2019-07-22 16:59:17 -07:00
Simon Willison
c88f0a4d46
Release 1.6
2019-07-18 21:51:21 -07:00
Simon Willison
09316835e6
Implemented --tsv option, closes #41
2019-07-18 21:50:38 -07:00
Simon Willison
ef112ffc94
Release 1.5
2019-07-14 21:37:31 -07:00
Simon Willison
c65b67ca46
.get() method plus support for compound primary keys ( #40 )
...
* create_table now handles compound primary keys
* CLI now accepts multiple --pk for compound primary keys
* Docs for compound primary keys with CLI and Python library
* New .get() method plus documentation
Closes #36 , closes #39
2019-07-14 21:28:51 -07:00
Simon Willison
65b2156d9c
Show version in docs
...
Thanks, @nedbat
https://twitter.com/nedbat/status/1150490436114534400
2019-07-14 12:45:00 -07:00
Simon Willison
91311bb0db
Sphinx docs now pull version info from git tag
...
Based on http://dreamiurg.net/2011/10/03/using-git-to-get-version-information/
2019-07-14 12:24:45 -07:00
Simon Willison
f70e35c9bb
Added table.rows_where(where, args) method
2019-07-14 11:58:40 -07:00
Simon Willison
41d1751aec
Release 1.4.1
2019-07-14 10:08:34 -07:00
Simon Willison
ba6bd47f15
Typo fix
2019-07-14 09:25:57 -07:00
Simon Willison
fef96163d9
Minor markup cleanup
2019-07-09 04:55:04 -07:00
Simon Willison
5be66529a3
Fixed RST and Typo
2019-07-09 04:49:32 -07:00
Simon Willison
b0a2f897f4
Typo fix
2019-07-09 04:42:40 -07:00
Simon Willison
fad14ab943
Release 1.4
2019-06-30 16:51:17 -07:00
Simon Willison
e8f887ef4a
sqlite-utils index-foreign-keys / db.index_foreign_keys()
...
Closes #33
2019-06-30 16:50:54 -07:00
Simon Willison
b4e36546b0
Release 1.3
2019-06-28 23:32:36 -07:00
Simon Willison
997d8758fc
db.add_foreign_keys() method
...
Closes #31
2019-06-28 23:27:38 -07:00
Simon Willison
86bd2bba68
1.2.2 release notes
2019-06-25 21:23:45 -07:00
Simon Willison
46281c9db0
Release 1.2.1
2019-06-20 17:01:24 -07:00
Simon Willison
1c8a0e874f
Release 1.2
2019-06-12 23:39:59 -07:00
Simon Willison
208f56fbaf
--not-null and --default options to insert/update, closes #24
2019-06-12 23:30:16 -07:00
Simon Willison
362359da7e
not_null= and defaults= arguments to various Python methods, refs #24
2019-06-12 23:10:07 -07:00
Simon Willison
07a10bdb2c
foreign_keys=[...] can now detect tables and keys - closes #25
2019-06-12 22:32:26 -07:00
Simon Willison
d645032cfa
add_foreign_key can now detect table and pk, refs #25
2019-06-12 21:51:09 -07:00
Simon Willison
c2622ceabd
cd docs && make livehtml
...
Enabled make rule for sphinx-autobuild
2019-06-12 21:50:18 -07:00
Simon Willison
2fed87da6e
--not-null-default and not_null_default=, refs #24
2019-06-12 18:35:02 -07:00
Simon Willison
26b2cf3418
Changelog for 1.1 + docs for --ignore/ignore=True
2019-05-28 22:06:22 -07:00
Simon Willison
50e2f94b58
Ability to add a column that is a foreign key reference
...
Python API:
db["dogs"].add_column("species_id", fk="species")
# or
db["dogs"].add_column("species_id", fk="species", fk_col="ref")
CLI:
$ sqlite-utils add-column mydb.db dogs species_id --fk species
# or
$ sqlite-utils add-column mydb.db dogs species_id --fk species --fk-col ref
Closes #16
2019-05-28 21:54:43 -07:00
Simon Willison
1e28eeee8c
Fixed RST syntax bug
2019-05-27 22:25:03 -07:00
Simon Willison
63953f56e7
Release 1.0.1
2019-05-27 17:50:28 -07:00
Simon Willison
ee017cdbdd
Release notes for 1.0, closes #22
2019-05-24 18:06:38 -07:00
Simon Willison
251e473041
--json-cols option for outputting nested JSON, closes #20
2019-05-24 17:56:44 -07:00
Simon Willison
eff52023c6
alter=True/--alter option to automatically add missing columns
...
Closes #18
2019-05-24 17:41:04 -07:00
Simon Willison
05317f5341
Release 0.14
2019-02-24 15:11:51 -08:00