diff --git a/docs/changelog.rst b/docs/changelog.rst index 43cfcc5e9..3434b8fca 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,15 @@ Changelog =========== +.. _v2_7.1: + +2.7.1 (2020-05-01) +------------------ + +- New ``sqlite-utils views my.db`` command for listing views in a database, see :ref:`cli_views`. (`#105 `__) +- ``sqlite-utils tables`` (and ``views``) has a new ``--schema`` option which outputs the table/view schema, see :ref:`cli_tables`. (`#104 `__) +- Nested structures containing invalid JSON values (e.g. Python bytestrings) are now serialized using ``repr()`` instead of throwing an error. (`#102 `__) + .. _v2_7: 2.7 (2020-04-17) diff --git a/docs/cli.rst b/docs/cli.rst index eca3df395..ef218a047 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -17,7 +17,7 @@ You can execute a SQL query against a database and get the results back as JSON [{"id": 1, "age": 4, "name": "Cleo"}, {"id": 2, "age": 2, "name": "Pancakes"}] -This is the default subcommand for ``sqlite-utils``, so you can instead use this:: +This is the default command for ``sqlite-utils``, so you can instead use this:: $ sqlite-utils dogs.db "select * from dogs" @@ -142,7 +142,7 @@ For a full list of table format options, run ``sqlite-utils query --help``. Returning all rows in a table ============================= -You can return every row in a specified table using the ``rows`` subcommand:: +You can return every row in a specified table using the ``rows`` command:: $ sqlite-utils rows dogs.db dogs [{"id": 1, "age": 4, "name": "Cleo"}, @@ -155,7 +155,7 @@ This command accepts the same output options as ``query`` - so you can pass ``-- Listing tables ============== -You can list the names of tables in a database using the ``tables`` subcommand:: +You can list the names of tables in a database using the ``tables`` command:: $ sqlite-utils tables mydb.db [{"table": "dogs"}, @@ -202,6 +202,8 @@ Use ``--schema`` to include the schema of each table:: The ``--nl``, ``--csv`` and ``--table`` options are all available. +.. _cli_views: + Listing views ============= @@ -410,7 +412,7 @@ You can use the ``--not-null`` and ``--default`` options (to both ``insert`` and Creating indexes ================ -You can add an index to an existing table using the ``create-index`` subcommand:: +You can add an index to an existing table using the ``create-index`` command:: $ sqlite-utils create-index mydb.db mytable col1 [col2...] diff --git a/setup.py b/setup.py index 90ccde857..8e949131a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import io import os -VERSION = "2.7" +VERSION = "2.7.1" def get_long_description():