Skip to content

Commit 4e9446f

Browse files
author
Ivan Dlugos
committed
assert minimum supported objectbox-c version
1 parent 526cea9 commit 4e9446f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

objectbox/c.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# initialize the C library
66
C = ctypes.CDLL(ctypes.util.find_library("objectbox"))
77

8+
assert C.obx_version_is_at_least(0, 5, 103) == 1, \
9+
"ObjectBox v0.5.103+ is not installed. " \
10+
"Please upgrade/install by following the instructions at https://github.com/objectbox/objectbox-c"
11+
812
# define some basic types
913
obx_err = ctypes.c_int
1014
obx_schema_id = ctypes.c_uint32

0 commit comments

Comments
 (0)