Pîrvu Mihai Cristian

Results 5 comments of Pîrvu Mihai Cristian

I had to make a workaround as this hasn't been fixed : ``` class ConnectionWrapper: def __init__(self, db_conn: libsql.Connection): self.db_conn = db_conn self.retry_connection_fn = None def execute(self, *args, **kwargs): try:...

My solution (check [here](https://gist.github.com/Meehai/ccf331daef396f3b269cdb44d723fee4/#file-migrate-py-L36) my migrate script from local to remote -- later I found out there's a cli for this but nonetheless): ``` insert into table x(col1, col2, col3)...

nvm, the code is must simpler to deadlock: ```python import libsql_client import sys import sqlite3 if __name__ == "__main__": assert sys.argv[1] in ("sqlite3", "libsql"), sys.argv[1] if sys.argv[1] == "sqlite3": db...

seems that using https://github.com/tursodatabase/libsql-experimental-python/ (as per https://docs.turso.tech/sdk/python/quickstart#local-only) provides a much closer API to the stock sqlite3 library and doesn't deadlock. I guess I'll use that but it's a bit confusing...

here's another one I found recenttly ```python """pylint wrong used-before-assignment""" if __name__ == "__main__": my_dict = {} my_dict[key] = my_dict.get(key := str(0), 0) # this one yields the error even...