apsw

Intellisense for Python APSW

Intellisense for Python APSW Question: System specs Windows 10 Pro x64 Python 3.10.2 x64 APSW 3.37.0 Visual Studio Code 1.63.2 Intellisense works for Python and all imported modules except for APSW. APSW does work, and executing dir(apsw) Will yield all constants, functions, properties, etc contained in the apsw module, just no intellisense. My settings.json file …

Total answers: 1

How to create multiple complex sqlite transactions with an expected out using apsw?

How to create multiple complex sqlite transactions with an expected out using apsw? Question: I want to execute several complex statements in a transaction with a select statement at the end which I use for further processing. Doing so once works fine but as soon as I execute the same statement again it causes the …

Total answers: 1

apsw.Connection has no attribute enableloadextension

apsw.Connection has no attribute enableloadextension Question: I have installed Python 2.7.9 on Mac OS X Yosemite with Homebrew and I have also installed apsw 3.8.8.2-r1 via the bundled pip. However, even though the apsw module is found, I cannot seem to be able to run my application, as if fails with the an AttributeError. AttributeError: …

Total answers: 1

Column data type affected by usage of it elsewhere

Column data type affected by usage of it elsewhere Question: I can’t seem to find a reference to the following behavior either in SQLite or apsw docs: I have a table partially defined and populated as: CREATE TABLE GeoLoc (lat TEXT, lon TEXT); INSERT INTO GeoLoc (lat, lon) VALUES (‘-33.5533422’, ‘151.23422’); When using apsw to …

Total answers: 2

How to update a field with APSW

How to update a field with APSW Question: I am trying to update the timestamp on a database entry when I use it and I can’t seem to get the Update statement to work import apsw from datetime import datetime def updateTimestamp(primary, timestamp): tableName = ‘Images’ connection = apsw.Connection(‘Images’) cursor = connection.cursor() sql = “UPDATE …

Total answers: 1

"BusyError: cannot rollback savepoint – SQL statements in progress" when using SQLite with APSW

"BusyError: cannot rollback savepoint – SQL statements in progress" when using SQLite with APSW Question: I’m working with an SQLite database using the Python apsw bindings. The code goes like this: with apsw.Connection(path) as t: c = t.cursor() c.execute(…) … more code … if c.execute(…).next()[0]: raise Exception I expect the with statement to put a …

Total answers: 2

Fetch All in APSW

Fetch All in APSW Question: You know there isn’t any "fetchall" method for APSW. We can only use .next() method. So How can I take the result of an execute command with select query into a list? Asked By: Shansal || Source Answers: Version 3.6.22 of apsw let me use cursor.fetchall() to retrieve all rows …

Total answers: 1

Odd error when installing apsw on Windows

Odd error when installing apsw on Windows Question: I tried to install apsw on another system, we got a multitude of errors, depending on how we installed it. First off, installing via exe gave us a "This application is not a valid win32 program" When we manually installed it from my system, we got a …

Total answers: 2