mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Documentation for create_view()
This commit is contained in:
parent
a86c3ee832
commit
19e1057ead
1 changed files with 11 additions and 0 deletions
|
|
@ -74,6 +74,17 @@ You can also specify a primary key by passing the ``pk=`` parameter to the ``.in
|
|||
"is_good_dog": True,
|
||||
}, pk="id")
|
||||
|
||||
Creating views
|
||||
==============
|
||||
|
||||
The ``.create_view()`` method on the database class can be used to create a view:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
db.create_view("good_dogs", """
|
||||
select * from dogs where is_good_dog = 1
|
||||
""")
|
||||
|
||||
Storing JSON
|
||||
============
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue