mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 02:14:31 +02:00
errors=r.SET_NULL/r.IGNORE options for parsedate/parsedatetime, closes #416
This commit is contained in:
parent
433813612f
commit
878d5f5cea
6 changed files with 108 additions and 20 deletions
|
|
@ -2583,12 +2583,16 @@ def _generate_convert_help():
|
|||
"""
|
||||
).strip()
|
||||
recipe_names = [
|
||||
n for n in dir(recipes) if not n.startswith("_") and n not in ("json", "parser")
|
||||
n
|
||||
for n in dir(recipes)
|
||||
if not n.startswith("_")
|
||||
and n not in ("json", "parser")
|
||||
and callable(getattr(recipes, n))
|
||||
]
|
||||
for name in recipe_names:
|
||||
fn = getattr(recipes, name)
|
||||
help += "\n\nr.{}{}\n\n {}".format(
|
||||
name, str(inspect.signature(fn)), fn.__doc__
|
||||
help += "\n\nr.{}{}\n\n\b{}".format(
|
||||
name, str(inspect.signature(fn)), fn.__doc__.rstrip()
|
||||
)
|
||||
help += "\n\n"
|
||||
help += textwrap.dedent(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue