Functions of extensions are not accessible
avinassh opened this issue · comments
Avinash Sajjanshetty commented
Create a new db with extensions enabled:
$ turso db create --group <group_name> --enable-extensions
Following fails with:
import os
import libsql_experimental as libsql
print(F"syncing with {os.getenv('LIBSQL_URL')}")
connection = libsql.connect("hello.db", sync_url=os.getenv("LIBSQL_URL"), auth_token=os.getenv("LIBSQL_AUTH_TOKEN"))
connection.sync()
print("remote vss: ", connection.execute("select vss_version()").fetchall())
error:
Traceback (most recent call last):
File "func_demo.py", line 9, in <module>
print("remote vss: ", connection.execute("select vss_version()").fetchall())
ValueError: no such function: vss_version
but I can run the query in turso shell:
$ turso db shell moral-sauron
...
→ select vss_version();
VSS VERSION ()
v0.1.2