mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-17 05:54:23 +02:00
--no-skip-false option, plus docs - closes #527
This commit is contained in:
parent
455c35b512
commit
e0ec4c3451
4 changed files with 34 additions and 0 deletions
|
|
@ -1342,6 +1342,8 @@ You can include named parameters in your where clause and populate them using on
|
|||
|
||||
The ``--dry-run`` option will output a preview of the conversion against the first ten rows, without modifying the database.
|
||||
|
||||
By default any rows with a falsey value for the column - such as ``0`` or ``null`` - will be skipped. Use the ``--no-skip-false`` option to disable this behaviour.
|
||||
|
||||
.. _cli_convert_import:
|
||||
|
||||
Importing additional modules
|
||||
|
|
|
|||
|
|
@ -916,6 +916,8 @@ This will add the new column, if it does not already exist. You can pass ``outpu
|
|||
|
||||
If you want to drop the original column after saving the results in a separate output column, pass ``drop=True``.
|
||||
|
||||
By default any rows with a falsey value for the column - such as ``0`` or ``None`` - will be skipped. Pass ``skip_false=False`` to disable this behaviour.
|
||||
|
||||
You can create multiple new columns from a single input column by passing ``multi=True`` and a conversion function that returns a Python dictionary. This example creates new ``upper`` and ``lower`` columns populated from the single ``title`` column:
|
||||
|
||||
.. code-block:: python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue