reifydb-client 0.9.0

Official Rust client library for ReifyDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 ReifyDB

#[cfg(not(reifydb_single_threaded))]
mod tests {
	use reifydb_client::{WireFormat, grpc::GrpcClient};

	#[tokio::test]
	#[cfg(feature = "grpc")]
	async fn test_grpc_rejects_json() {
		let result = GrpcClient::connect("http://localhost:8091", WireFormat::Frames).await;
		assert!(result.is_err());
		if let Err(err) = result {
			assert_eq!(err.0.code, "INVALID_FORMAT");
			assert!(err.0.message.contains("WireFormat::Frames is not supported"));
		}
	}
}