libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

libSQL API for Python (experimental)

Results 54 libsql-experimental-python issues
Sort by recently updated
recently updated
newest added

This adds a stub file, adding type hints in Python. This added the `connect` function as well as the `Connection` and `Cursor` classes. Everything is in the `libsql_experimental.pyi` file. According...

Inserting `None` into a table appears to throw an exception. Is there a different way to insert a NULL value into a row or is this not supported? ```python import...

- Trying to establish a connection with TursoDB, connection has been established successfully but getting this error after giving a pause for some seconds before sending any request again. -...

```python test_data = [ ('Donna', date(2022, 4, 14)), ('Eric', date(2023, 6, 21)), ('Kelso', date(2018, 9, 12)), ] stmt = "INSERT INTO names (first_name, date) VALUES (%s, %s)" cursor.executemany(stmt, test_data) ```...

Whenever i Run this code Which is in the official documentation of libsql-experimental . ``` import libsql_experimental as libsql url = os.getenv("LIBSQL_URL") auth_token = os.getenv("LIBSQL_AUTH_TOKEN") con = libsql.connect(database=url, auth_token=auth_token) cur...

Docs: https://docs.python.org/3.11/library/sqlite3.html#row-objects and https://docs.python.org/3.11/library/sqlite3.html#sqlite3-howto-row-factory This lets us do things like following: ```python >>> res = con.execute("SELECT 'Earth' AS name, 6378 AS radius") >>> row = res.fetchone() >>> row.keys() ['name', 'radius']...

enhancement
good first issue
help wanted

Python SQLite interface expects caller to call `commit()` explicitly but @avinassh points out this does not work with remote databases: ``` ValueError: Hrana: `stream error: `StreamResponseError { error: Error {...

bug

looping through 50-100 changes, and hitting some timeouts.. ``` ValueError: Hrana: `api error: `{"error":"Internal Error: `Timed out while opening database connection`"}`` ``` Built-in retry logic with backoff strategy would be...

https://sqlite.org/lang_savepoint.html I'm trying to get a Django database backend running and this is the current blocker. You can see the error in this test run: https://github.com/lincolnloop/django-libsql/actions/runs/6438992639/job/17486170095 Here is the relevant...

The driver currently only implements the legacy autocommit mechanism. Let's add support for the Python 3.12 `Connection.autocommit` mechanism.

enhancement
good first issue
help wanted