( db: Database, hashes: Uint8Array[], )
| 18 | } |
| 19 | |
| 20 | export function fetchObjects( |
| 21 | db: Database, |
| 22 | hashes: Uint8Array[], |
| 23 | ): AsyncIterable<{ hash: Uint8Array; bytes: Uint8Array }> { |
| 24 | return pushObjects(db, hashes); |
| 25 | } |
| 26 | |
| 27 | // Stable hex key for JS-side membership tests. Only content matters |
| 28 | // here; the SQL match is on the raw hash blob. |