Comments (5)
which functions do you expect?
from monetdbe-python.
What are the options? the usual commit, rollback, start transaction?
from monetdbe-python.
from monetdbe-python.
Recap from the documentation.
The Python/SQLite semantics are : auto-commit, deferred, immediate, exclusive.
The underlying SQLite library is based on auto-commit.autocommit mode means that statements that modify the database take effect immediately. A BEGIN or SAVEPOINT statement disables auto-commit mode, and a COMMIT, a ROLLBACK, or a RELEASE that ends the outermost transaction, turns auto-commit mode back on.
The Python sqlite3 module by default issues a BEGIN statement implicitly before a Data Modification Language (DML) statement (i.e. INSERT/UPDATE/DELETE/REPLACE).
You can control which kind of BEGIN statements sqlite3 implicitly executes via the isolation_level parameter to the connect() call, or via the isolation_level property of connections. If you specify no isolation_level, a plain BEGIN is used, which is equivalent to specifying DEFERRED. Other possible values are IMMEDIATE and EXCLUSIVE.
You can disable the sqlite3 module’s implicit transaction management by setting isolation_level to None. This will leave the underlying sqlite3 library operating in autocommit mode. You can then completely control the transaction state by explicitly issuing BEGIN, ROLLBACK, SAVEPOINT, and RELEASE statements in your code.
Proposed MonetDBe rules
- all statements passed through execute() follow the auto-commit semantics
- all statements passed executescript(), and executemany() are considered compound transactions, automatically wrapped with a BEGIN TRANSACTION and finalized with a COMMIT. We don;t check on mis-use (nested BEGIN) within the sequence.
from monetdbe-python.
The SQLite transactions test suite passes now
from monetdbe-python.
Related Issues (20)
- Find a way to download latest win builds from testweb HOT 4
- Niels swapped 2 lines in test suite for 0.10, he needs to figure out why that was required HOT 2
- CREATE VIEW statement HOT 5
- INSERT in merge table segfault. HOT 4
- OS X delocate step failing during binary wheel creation HOT 1
- monetdbe_prepare() seems to have changed on the default branch
- Two unittests fail on all platforms HOT 1
- Support decimal types in prepared statements
- monetdbe master build fails on OSX m1 with monetdb stable 11.41.11 HOT 1
- Current monetdbe (0.11) has an issue with function creation
- add generate_series function HOT 3
- Remove backwards compatible monetdbelite functions that raise warnings
- Optionally represent monetdb str column as fixed with numpy string array
- Verify if we correctly check for null values
- Make pandas dependency optional
- Add TZ info to returned datetime columns
- querylog_* tables in MonetDBe HOT 3
- Missing Key 5 in monet_c_type_map HOT 1
- Incorrectly treating decimals as integer types HOT 1
- Does not seem to work with Python 3.12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monetdbe-python.