public void Connect()
 {
     AssertError(
         ReindexerBinding.reindexer_connect(_rx,
                                            $"builtin://{Path.Combine(Path.GetTempPath(), "ReindexerBindingTest")}".GetHandle(),
                                            new ConnectOpts
     {
         options           = ConnectOpt.kConnectOptAllowNamespaceErrors,
         storage           = StorageTypeOpt.kStorageTypeOptLevelDB,
         expectedClusterID = 0
     }, ReindexerBinding.ReindexerVersion.GetHandle()));
 }
        /// <inheritdoc/>
        public virtual void Connect(string connectionString, ConnectionOptions options = null)
        {
            if (!Directory.Exists(connectionString))
            {
                Directory.CreateDirectory(connectionString); //reindexer sometimes throws permission exception from c++ mkdir func. so we try to crate directory before.
            }

            using (var dsn = $"builtin://{connectionString}".GetHandle())
                using (var version = ReindexerBinding.ReindexerVersion.GetHandle())
                    Assert.ThrowIfError(() =>
                                        ReindexerBinding.reindexer_connect(Rx,
                                                                           dsn,
                                                                           options ?? new ConnectionOptions(),
                                                                           version)
                                        );
        }