Skip to content

Commit

Permalink
Release 2.7.1, refs #102 #104 #105
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed May 1, 2020
1 parent d560295 commit b4d953d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/simonw/sqlite-utils/issues/105>`__)
- ``sqlite-utils tables`` (and ``views``) has a new ``--schema`` option which outputs the table/view schema, see :ref:`cli_tables`. (`#104 <https://github.com/simonw/sqlite-utils/issues/104>`__)
- Nested structures containing invalid JSON values (e.g. Python bytestrings) are now serialized using ``repr()`` instead of throwing an error. (`#102 <https://github.com/simonw/sqlite-utils/issues/102>`__)

.. _v2_7:

2.7 (2020-04-17)
Expand Down
10 changes: 6 additions & 4 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"},
Expand All @@ -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"},
Expand Down Expand Up @@ -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
=============

Expand Down Expand Up @@ -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...]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import io
import os

VERSION = "2.7"
VERSION = "2.7.1"


def get_long_description():
Expand Down

0 comments on commit b4d953d

Please sign in to comment.