mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-22 17:04:31 +02:00
Release 0.14
This commit is contained in:
parent
3cab079d3e
commit
05317f5341
4 changed files with 23 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
-----------------------
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||
import io
|
||||
import os
|
||||
|
||||
VERSION = "0.13"
|
||||
VERSION = "0.14"
|
||||
|
||||
|
||||
def get_long_description():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue