mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 18:34:32 +02:00
.get() method plus support for compound primary keys (#40)
* create_table now handles compound primary keys * CLI now accepts multiple --pk for compound primary keys * Docs for compound primary keys with CLI and Python library * New .get() method plus documentation Closes #36, closes #39
This commit is contained in:
parent
65b2156d9c
commit
c65b67ca46
7 changed files with 173 additions and 12 deletions
|
|
@ -200,6 +200,8 @@ Here's the simplest possible example::
|
|||
|
||||
To specify a column as the primary key, use ``--pk=column_name``.
|
||||
|
||||
To create a compound primary key across more than one column, use ``--pk`` multiple times.
|
||||
|
||||
If you feed it a JSON list it will insert multiple records. For example, if ``dogs.json`` looks like this::
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue