Commit Graph

33 Commits

Author SHA1 Message Date
Charles Leifer ac959db5b4 Remove Python 2.x compatibility code. So long, old friend. 2026-03-09 10:39:07 -05:00
Charles Leifer 2a8d977855 Get rid of SqliteExt* - it basically did nothing. 2026-02-23 15:26:14 -06:00
Charles Leifer 8c80725cdf Back-out changes to use sqlite returning.
This caused some unexpected issues when the returning cursor was not
consumed (e.g. within a savepoint), that cause the savepoint to not be
able to be released. Since this is backwards-incompatible, I am going to
roll it back for now.
2021-10-28 09:26:10 -05:00
Charles Leifer 10be40b2ea Add provisional support for RETURNING for sqlite_ext/mariadb.
Sqlite has kind-of unusual behavior with regards to lastrowid and the
rowid in general, so I'm retaining the original behavior for the
standard SqliteDatabase, but using SqliteExtDatabase will now support
RETURNING for Sqlite 3.35 or newer.

Similarly, MariaDBConnectorDatabase will also support RETURNING for
MariaDB 10.5 or newer.
2021-10-21 08:56:48 -05:00
Charles Leifer 6faf28ae98 Use sqlcipher3 if possible. 2019-06-03 11:12:30 -05:00
Charles Leifer 8987209d0e Set sqlite3 isolation_level in constructor. 2019-05-12 16:55:37 -05:00
Charles Leifer ce65043a72 Remove minimum passphrase restrictions in SqlCipher integration. 2018-12-19 14:29:46 -06:00
Charles Leifer 3634aea5ec Remove kdf_iter hard-code from sqlcipher implementation. 2018-12-06 08:31:48 -06:00
Edward Betts 0cc62234da Correct spelling mistakes. 2018-06-03 13:38:16 +01:00
Charles Leifer 17dfd1a990 Run conn hooks *after* setting key. 2018-03-21 22:16:27 -05:00
Charles Leifer ed0dd397b4 Add method for setting passphrase on encrypted db. 2018-03-21 21:34:54 -05:00
Charles Leifer f266fb7f1a Support for re-keying a SQLCipher database. 2018-03-15 15:46:20 -05:00
Charles Leifer 406eb5865d Add len() method to ModelBase, equivalent to count(). 2018-02-01 21:45:48 -06:00
Charles Leifer ee40b8f7cf Add remaining test modules, implement sqlcipher. 2017-05-04 10:00:45 +01:00
Charles Leifer 0710d9e915 Use exc.args instead of message, fixes #1083 2016-09-29 09:09:03 -05:00
Charles Leifer 78e6f18879 Fixing bug where connect_kwargs is stomped on by re-init. 2015-12-10 11:32:37 -06:00
Charles Leifer 189933c061 Switch error type 2015-02-18 15:11:16 -08:00
Charles Leifer 3fd8c632d6 Try sqlcipher3, fixes #530 2015-02-18 14:16:02 -08:00
Charles Leifer 2f8fdba1f9 Some code cleanup. 2015-02-03 18:39:45 -06:00
Charles Leifer 1521e97675 SQLCipher with SQLiteExtDatabase. 2015-01-26 16:43:38 -06:00
Charles Leifer 5dd73e988c More cleanup and consistent names. 2014-05-03 10:35:56 -05:00
Charles Leifer f181e40f81 Cleanups 2014-05-03 10:35:55 -05:00
The Dod 358763f51d Document sqlcipher_ext at playhouse.rst 2014-05-03 10:35:55 -05:00
The Dod 23b16d3ea6 Some more PEP 8 2014-05-03 10:35:55 -05:00
The Dod 741c7b7c17 PEP 8. Remove tearDown(). 2014-05-03 10:35:55 -05:00
The Dod e07ed0d4b4 -e pysqlcipher passes all tests \o/
I still need to write the --pysqlcipher extra tests.
2014-05-03 10:35:55 -05:00
The Dod ba8b1db9c6 Loose ends 2014-05-03 10:35:55 -05:00
The Dod 6e8ce58966 Another round of fixes 2014-05-03 10:35:55 -05:00
The Dod a3943550c2 Ouch!
Removed a stray joke
2014-05-03 10:35:55 -05:00
The Dod 1a3cb56a60 Fixing according to @coleifer's remarks 2014-05-03 10:35:55 -05:00
The Dod e091fa701f Added a warning that it's experimental
Before peer reviewers notice that I haven't so far ☺️
2014-05-03 10:35:55 -05:00
The Dod d98988cbad Fixes what I broke in tests for *other* engines :s
"vanilla" tests pass again, Travis... Sorry.
"-e pysqlcipher" gets the same 22 "probably unsupported type"
errors: http://pastebin.com/Br96wCav
2014-05-03 10:35:55 -05:00
The Dod 0a26ae2f47 Moved stuff to playhouse
I also added both apsw and pysqlcipher as -e options in the help
text (apsw has --apsw extras, but it also needs -e apsw if I
understand correctly).
Anyway, I hope I did it right.
2014-05-03 10:35:55 -05:00