added check_document_exists(collection, target) -> bool (count_documents(target, limit=1) > 0) — it existed only in the talos origin and was not carried over, but the talos caller relies on it. renamed the do_upsert param to upsert on update_document/find_one_and_update/find_one_and_replace, standardizing on motor's name (the talos caller already passes upsert=). param rename is breaking; patch is fine under the no-consumer policy. bump to v0.1.1.
Signed-off-by: disqualifier <dev@disqualifier.me>
close() was async but only called motor's synchronous client.close(), misleading callers into awaiting it; it is now a plain def and the docstring + README examples drop the await. get_document_hashmap/get_document_fields indexed doc[key] unguarded, so a doc missing the field raised KeyError that the broad except swallowed, conflating 'no documents' with 'field absent'; both now skip docs lacking the key.
Signed-off-by: disqualifier <dev@disqualifier.me>
the README install pin used git+https with no git@ prefix or .git suffix, which does not resolve against the SSH-only Gitea remote. corrected to the canonical git+ssh form.
Signed-off-by: disqualifier <dev@disqualifier.me>
point install at git.rethinkstudios.io; show both the requirements.txt
line and the direct pip install command.
Signed-off-by: disqualifier <dev@disqualifier.me>