Skip to content

Commit 05317f5

Browse files
committed
Release 0.14
1 parent 3cab079 commit 05317f5

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ Now you can do things like this:
2525
1,4,Cleo
2626
2,2,Pancakes
2727

28+
$ sqlite-utils dogs.db "select * from dogs" --table
29+
id age name
30+
---- ----- --------
31+
1 4 Cleo
32+
2 2 Pancakes
33+
2834
Full documentation: https://sqlite-utils.readthedocs.io/
2935

3036
Related projects:

docs/changelog.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
Changelog
33
===========
44

5+
.. _v0_14:
6+
7+
0.14 (2019-02-24)
8+
-----------------
9+
10+
- Ability to create unique indexes: ``db["mytable"].create_index(["name"], unique=True)``
11+
- ``db["mytable"].create_index(["name"], if_not_exists=True)``
12+
- ``$ sqlite-utils create-index mydb.db mytable col1 [col2...]``, see :ref:`cli_create_index`
13+
- ``table.add_column(name, type)`` method, see :ref:`python_api_add_column`
14+
- ``$ sqlite-utils add-column mydb.db mytable nameofcolumn``, see :ref:`cli_add_column` (CLI)
15+
- ``db["books"].add_foreign_key("author_id", "authors", "id")``, see :ref:`python_api_add_foreign_key`
16+
- ``$ sqlite-utils add-foreign-key books.db books author_id authors id``, see :ref:`cli_add_foreign_key` (CLI)
17+
- Improved (but backwards-incompatible) ``foreign_keys=`` argument to various methods, see :ref:`python_api_foreign_keys`
18+
519
.. _v0_13:
620

721
0.13 (2019-02-23)

docs/python-api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ The first argument here is a dictionary specifying the columns you would like to
140140

141141
This method takes optional arguments ``pk=``, ``column_order=`` and ``foreign_keys=``.
142142

143+
.. _python_api_foreign_keys:
144+
143145
Specifying foreign keys
144146
-----------------------
145147

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import os
44

5-
VERSION = "0.13"
5+
VERSION = "0.14"
66

77

88
def get_long_description():

0 commit comments

Comments
 (0)