diff --git a/README.md b/README.md index ebcae5078..260a6a863 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ Now you can do things like this: 1,4,Cleo 2,2,Pancakes + $ sqlite-utils dogs.db "select * from dogs" --table + id age name + ---- ----- -------- + 1 4 Cleo + 2 2 Pancakes + Full documentation: https://sqlite-utils.readthedocs.io/ Related projects: diff --git a/docs/changelog.rst b/docs/changelog.rst index c061446fe..ac2c84307 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,20 @@ Changelog =========== +.. _v0_14: + +0.14 (2019-02-24) +----------------- + +- Ability to create unique indexes: ``db["mytable"].create_index(["name"], unique=True)`` +- ``db["mytable"].create_index(["name"], if_not_exists=True)`` +- ``$ sqlite-utils create-index mydb.db mytable col1 [col2...]``, see :ref:`cli_create_index` +- ``table.add_column(name, type)`` method, see :ref:`python_api_add_column` +- ``$ sqlite-utils add-column mydb.db mytable nameofcolumn``, see :ref:`cli_add_column` (CLI) +- ``db["books"].add_foreign_key("author_id", "authors", "id")``, see :ref:`python_api_add_foreign_key` +- ``$ sqlite-utils add-foreign-key books.db books author_id authors id``, see :ref:`cli_add_foreign_key` (CLI) +- Improved (but backwards-incompatible) ``foreign_keys=`` argument to various methods, see :ref:`python_api_foreign_keys` + .. _v0_13: 0.13 (2019-02-23) diff --git a/docs/python-api.rst b/docs/python-api.rst index 81716294c..7433c5a28 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -140,6 +140,8 @@ The first argument here is a dictionary specifying the columns you would like to This method takes optional arguments ``pk=``, ``column_order=`` and ``foreign_keys=``. +.. _python_api_foreign_keys: + Specifying foreign keys ----------------------- diff --git a/setup.py b/setup.py index 8bb23e40b..2854e7573 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import io import os -VERSION = "0.13" +VERSION = "0.14" def get_long_description():