github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/sqlite-utils/issues/199#issuecomment-723147463 | https://api.github.com/repos/simonw/sqlite-utils/issues/199 | 723147463 | MDEyOklzc3VlQ29tbWVudDcyMzE0NzQ2Mw== | 9599 | 2020-11-06T15:41:00Z | 2020-11-06T15:41:00Z | OWNER | Something like this: ``` @db.register_function(replace=True) def my_function(a): return a.upper() ``` If `replace=True` then this function will be registered even if a `my_function` of arity 1 has already been registered previously. It defaults to `False` though which means the Database object tracks what functions and arities have been registered in the past and silently ignores any new attempts to register the same name/arity. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
737855731 |