Skip to content
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

Functions of extensions are not accessible #19

Open
avinassh opened this issue Dec 1, 2023 · 0 comments
Open

Functions of extensions are not accessible #19

avinassh opened this issue Dec 1, 2023 · 0 comments

Comments

@avinassh
Copy link
Member

avinassh commented Dec 1, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant