#[derive(nativeclick::Row, Debug, PartialEq, Clone)]
struct TestRow {
b: nativeclick::Bytes,
a: nativeclick::Bytes,
}
#[tokio::test]
async fn ordering() {
let client = super::get_client().await;
super::prepare_table(
"test_ordering",
"a Array(UInt8),
b String",
&client,
)
.await;
let row = TestRow {
a: vec![1, 2, 3].into(),
b: vec![4, 5, 6].into(),
};
client
.insert_native_block("INSERT INTO test_ordering FORMAT Native", vec![row.clone()])
.await
.unwrap();
let row2 = client
.query_one("SELECT * from test_ordering")
.await
.unwrap();
assert_eq!(row, row2);
}