From bfbe69646e67322dde328b07109f77c68463dc71 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 27 Jul 2022 17:07:23 -0700 Subject: [PATCH] Fixed incorrect register_function code example --- sqlite_utils/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index a2a30f9..ca1f90e 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -373,13 +373,13 @@ class Database: ``fn`` will be made available as a function within SQL, with the same name and number of arguments. Can be used as a decorator:: - @db.register + @db.register_function def upper(value): return str(value).upper() The decorator can take arguments:: - @db.register(deterministic=True, replace=True) + @db.register_function(deterministic=True, replace=True) def upper(value): return str(value).upper()