@@ -23,6 +23,7 @@ class _LbugSystemConfig(ctypes.Structure):
2323 ("checkpoint_threshold" , ctypes .c_uint64 ),
2424 ("throw_on_wal_replay_failure" , ctypes .c_bool ),
2525 ("enable_checksums" , ctypes .c_bool ),
26+ ("enable_multi_writes" , ctypes .c_bool ),
2627 ]
2728 if sys .platform == "darwin" :
2829 _fields_ .append (("thread_qos" , ctypes .c_uint32 ))
@@ -972,10 +973,6 @@ def __init__(
972973 enable_checksums : bool = True ,
973974 enable_multi_writes : bool = False ,
974975 ):
975- if enable_multi_writes :
976- raise NotImplementedError (
977- "enable_multi_writes is not yet wired in C-API backend"
978- )
979976 self ._database = _LbugDatabase ()
980977 config = _LIB .lbug_default_system_config ()
981978 config .buffer_pool_size = buffer_pool_size
@@ -988,6 +985,7 @@ def __init__(
988985 config .checkpoint_threshold = checkpoint_threshold
989986 config .throw_on_wal_replay_failure = throw_on_wal_replay_failure
990987 config .enable_checksums = enable_checksums
988+ config .enable_multi_writes = enable_multi_writes
991989
992990 state = _LIB .lbug_database_init (
993991 database_path .encode ("utf-8" ), config , ctypes .byref (self ._database )
0 commit comments