Releases: codenotary/immudb-py
Releases · codenotary/immudb-py
v1.5.0
v1.4.0
1.4.0 full api support release
New
- Added docstring documentation for every public method
- Added option for specyfing max_grpc_message_length on client side (increase max grpc body size have to be done also on immudb side)
- createDatabaseV2 method - creating more complex databases
- databaseListV2 method - new method to list databases
- loadDatabase method
- unloadDatabase method
- deleteDatabase method
- updateDatabaseV2 method - for updating databases in more complex maneer
- getDatabaseSettingsV2 method
- setActiveUser method
- flushIndex method
- databaseHealth method
- streamGet method for receiving an key-value in buffered streaming maneer
- streamGetFull method for receiving an key-value in streaming maneer (handles full reading automaticaly)
- streamVerifiedGetBuffered method for receiving an key-value in buffered streaming maneer and verifying with current saved state
- streamVerifiedGet method for receiving an key-value in streaming maneer (handles full reading automaticaly) and verifying with current saved state
- streamHistory for receiving a history for a key in a streaming maneer
- streamHistoryBuffered for receiving a history for a key in a buffered stream maneer
- streamZScanBuffered - for receiving a value with secondary index in a buffered stream maneer
- streamZScan - for receiving a value with secondary index in a streaming maneer
- streamScan - for receiving a key-values for provided parameters in a streaming maneer
- streamScanBuffered - for receiving a key-values for provided parameters in a buffered stream maneer
- streamExecAll - for executing actions in streaming maneer
- streamVerifiedSet - sets a key into provided buffer in streaming maneer and verifies state
- streamVerifiedSetFullValue - sets a key into provided value in streaming maneer and verifies state
- streamSet - sets a key into provided buffer in streaming maneer
- streamSetFullValue - sets a key into provided value in streaming maneer
- exportTx - exports transaction from immudb
- replicateTx - replicate transaction into immudb (exported by exportTx for example)
- verifiableSQLGet - allows to verify SQL row with current state
- notarization of immudb-py
What's Changed
- Notarize immudb-py by @marcosanchotene in #55
- [CICD] Notarize all files with vcn by @marcosanchotene in #57
- [CICD] Notarize immudb-py by @marcosanchotene in #58
- Implement docstring, missing methods, basic streaming by @Razikus in #56
Full Changelog: v1.3.2...v1.4.0
v1.3.2
1.3.1
Features
- Explicit support for immudb server v1.3.1
- Global GRPC request timeout
New
Adjustments
- client initialization - timeout parameter (you can now specify maximum timeout for request)
What's Changed
Full Changelog: v1.3.0...v1.3.1
1.3.0
Features
- Explicit support for immudb server v1.3.0
- Added possibility to retrieve value at provided revision
- Added support for interactive sessions
New
Adjustments
- get and verifiedGet - now it's possible to pass atRevision parameter to get value as some revision. Revision supports also relatives (like
-1
)
What's Changed
Full Changelog: v1.2.4...v1.3.0
1.2.4
Features
- Support for immudb server v1.2.4
- Added possibility to retrieve SQL Response with column names
- Added support for interactive sessions
New
New functions
- openManagedSession() - opens a interactive managed session with Tx sub interface. Managed session will automatically send keep alive packet. Should be opened with "with" statement to guarantee close
- openSession() - opens an interactive session
- closeSession() - closes an interactive session
- Tx -> newTx() - opens an new transaction
- Tx -> commit() - commits an transaction
- Tx -> rollback() -> rollback an transaction
- Tx -> sqlQuery() -> makes a SQL Query and returns results
- Tx -> sqlExec() -> executes SQL
Adjustments
- sqlQuery - now it's possible to use different column name modes - you could get preety dict in return, instead of tuples
What's Changed
Full Changelog: v1.2.3...v1.2.4
1.2.3
Features
- Support for immudb server v1.2.3
- Added Delete method
- Added ExpireableSet method
- Added VerifiedGetSince
New
New functions
- delete() - allows to delete key
immudb is immutable. You can add records, but never change or delete records. It's possible to achieve deletion by using the Delete function. It provides logical deletion, it means that it is not phisically deleted from db, but it's not possible to query it anymore after deletion.
- expireableSet() - allows to set expireable flag on key
- verifiedGetSince() - allows to get verfied result since provided transaction
What's Changed
Full Changelog: v1.2.2...v1.2.3
1.2.2
Features:
- works with immudb server v1.2.2
- implementes proof for old and new header version
- immudb SQL Timestamp is mapped to Python datetime.datetime. You can use naive and timezone aware datetime.datetime objects for SQL statements, data returned from database will always be timezone aware, with UTC set, since immudb timestamps are based on the epoch.
New
New functions
health
createDatabase
useDatabase
New exceptions
ErrUnsupportedTxVersion
ErrNonExpirable
ErrCorruptedData
ErrReadOnly
ErrKeyNotFound
Deprecated
Deprecated functions
databaseCreate
databaseUse
SDK will issue warnings when you use these functions. You can put limits in this warnings with a warnings filter.
Deprecated exceptions
VerificationException
: You should useErrCorruptedData
instead. There will be no warning, when you use theVerificationException
, so please review your code. You can useErrCorruptedData
in exact the same way asVerificationException
.
Breaking changes
- When using
sqlExec
and an immudb v1.1.0 server, there will be notxs
field in the response, since v1.1.0 usesctxs
anddtxs
. But due to protobuf changes, these are now unknown fields.
Release 0.9.0
Improved python SDK: this SDK version works with immudb v0.9.0 and v0.9.1.
Release 0.8.0
Feat/nosv (#14) * Removed use of SV functions * Aligned with immudb schema without SV, refactored directory layout * Added Scan and Reference methods