mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-23 18:34:13 +02:00
Updated sqlite-utils convert --help, refs #251
This commit is contained in:
parent
58fd02a91c
commit
89f754cd4b
1 changed files with 3 additions and 3 deletions
|
|
@ -1931,7 +1931,7 @@ def analyze_tables(
|
||||||
)
|
)
|
||||||
@click.option("--drop", is_flag=True, help="Drop original column afterwards")
|
@click.option("--drop", is_flag=True, help="Drop original column afterwards")
|
||||||
@click.option("-s", "--silent", is_flag=True, help="Don't show a progress bar")
|
@click.option("-s", "--silent", is_flag=True, help="Don't show a progress bar")
|
||||||
def lambda_(
|
def convert(
|
||||||
db_path,
|
db_path,
|
||||||
table,
|
table,
|
||||||
columns,
|
columns,
|
||||||
|
|
@ -1948,8 +1948,8 @@ def lambda_(
|
||||||
Convert columns using Python code you supply. For example:
|
Convert columns using Python code you supply. For example:
|
||||||
|
|
||||||
\b
|
\b
|
||||||
$ sqlite-utils convert my.db mytable mycolumn
|
$ sqlite-utils convert my.db mytable mycolumn \\
|
||||||
--code='"\\n".join(textwrap.wrap(value, 10))'
|
'"\\n".join(textwrap.wrap(value, 10))' \\
|
||||||
--import=textwrap
|
--import=textwrap
|
||||||
|
|
||||||
"value" is a variable with the column value to be converted.
|
"value" is a variable with the column value to be converted.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue