Skip to content

Instantly share code, notes, and snippets.

@asg017
Forked from simonw/pyproject.toml
Last active July 22, 2023 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asg017/d7cdf0d56e2be87efda28cebee27fa3c to your computer and use it in GitHub Desktop.
Save asg017/d7cdf0d56e2be87efda28cebee27fa3c to your computer and use it in GitHub Desktop.
sqlite-utils hello world plugin
[project]
name = "sqlite-utils-hello-world"
version = "0.2"
[project.entry-points.sqlite_utils]
hello_world = "sqlite_utils_hello_world"
import sqlite_utils
@sqlite_utils.hookimpl
def prepare_connection(conn):
conn.create_function(
"hello", 1, lambda name: f"Hello, {name}!"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment