public void InitReindexer()
        {
            _rx = ReindexerBinding.init_reindexer();
            Assert.AreNotEqual(UIntPtr.Zero, _rx);

            _logWriter = new LogWriterAction(Log);
            ReindexerBinding.reindexer_enable_logger(_logWriter);
            Connect();
        }
        public void EnableStorage()
        {
            var dbPath = Path.Combine(Path.GetTempPath(), "TestDbForEnableStorage");

            if (Directory.Exists(dbPath))
            {
                Directory.Delete(dbPath, true);
            }
            AssertError(ReindexerBinding.reindexer_enable_storage(ReindexerBinding.init_reindexer(), dbPath.GetHandle(), _ctxInfo));
        }
        };                                                                                              //TODO: Implement async/await logic.

        /// <summary>
        /// Creates a new embedded Reindexer database.
        /// </summary>
        public ReindexerEmbedded()
        {
            Rx = ReindexerBinding.init_reindexer();
        }