mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
sites.db is better name than dogs.db in this example
This commit is contained in:
parent
b491f22d81
commit
087753cd42
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ You can use the ``--functions`` option to pass a block of Python code that defin
|
|||
|
||||
This example defines a function which extracts the domain from a URL::
|
||||
|
||||
$ sqlite-utils query dogs.db "select url, domain(url) from urls" --functions '
|
||||
$ sqlite-utils query sites.db "select url, domain(url) from urls" --functions '
|
||||
from urllib.parse import urlparse
|
||||
|
||||
def domain(url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue