-
-
Notifications
You must be signed in to change notification settings - Fork 116
prepare_connection()
plugin hook
#574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Alex built this in: |
Just tried this out by adding the example from the docs to my sqlite-utils install -e ../sqlite-utils-hello-world
Then: sqlite-utils memory "select hello('simon')" [{"hello('simon')": "Hello, simon!"}] Also: >>> import sqlite_utils
>>> db = sqlite_utils.Database(memory=True)
>>> list(db.query("select hello('simon')"))
[{"hello('simon')": 'Hello, simon!'}]
>>> db2 = sqlite_utils.Database(memory=True, execute_plugins=False)
>>> list(db2.query("select hello('simon')"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/simon/Dropbox/Development/sqlite-utils/sqlite_utils/db.py", line 494, in query
cursor = self.execute(sql, params or tuple())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/simon/Dropbox/Development/sqlite-utils/sqlite_utils/db.py", line 512, in execute
return self.conn.execute(sql, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlean.dbapi2.OperationalError: no such function: hello |
simonw
added a commit
that referenced
this issue
Jul 22, 2023
simonw
added a commit
that referenced
this issue
Jul 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @simonw in #567 (comment)
The text was updated successfully, but these errors were encountered: