2026-05-12 bouzuya-firestore-client に read_time を追加
bouzuya/bouzuya-firestore-client に read_time 対応を追加した。
bouzuya-firestore-client は Rust で書かれた Node.js Firestore SDK に近いインタフェースを持つ Firestore Client 。
今日は read_time を追加した。 DocumentSnapshot, QuerySnapshot, QueryDocumentSnapshot に追加した。read_time は document の読み取られた時間や、クエリの実行された時間、読み取ったドキュメントの最後のドキュメントの時間などになる。状況次第で意味が微妙に違うのがどうなの……とは思うけど、そういうものなので……。
今日のコミット。
- bouzuya-firestore-client 7 commits
- Add QueryDocumentSnapshot::read_time
- Add QuerySnapshot::read_time
- Add DocumentSnapshot::read_time
- Combine batch_get and batch_get_in_transaction into batch_get_documents
- Rename FirestoreClient::get_document_in_transaction to batch_get_in_transaction and sort methods
- Add read_time to FirestoreClient::get_document_in_transaction
- Change FirestoreClient::run_query to return read_time