diff --git a/mdbx/__init__.py b/mdbx/__init__.py index c41d0ce..5a04f43 100644 --- a/mdbx/__init__.py +++ b/mdbx/__init__.py @@ -8,6 +8,7 @@ MDBXCursorOp, MDBXDBFlags, MDBXEnvFlags, + MDBXPutFlags, MDBXStat, MDBXErrorExc, MDBXEnvinfo, diff --git a/mdbx/mdbx.py b/mdbx/mdbx.py index ffd9a51..730301c 100644 --- a/mdbx/mdbx.py +++ b/mdbx/mdbx.py @@ -3137,7 +3137,7 @@ def put( return raise RuntimeError("Cursor is not available") - def delete(self, cursor_op: MDBXCursorOp = MDBXCursorOp.MDBX_FIRST) -> None: + def delete(self, cursor_op: MDBXPutFlags = MDBXPutFlags.MDBX_CURRENT) -> None: """ Thin wrapper around mdbx_cursor_del