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>
1.0 KiB
1.0 KiB
mongo — ledger
v0.1.1
- fidelity fix (MEDIUM): 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; the talos caller (local.py:157) relies on it. - param rename (breaking):
update_document/find_one_and_update/find_one_and_replacenow takeupsert=(wasdo_upsert=), standardizing on the motor name. Consumers passingdo_upsert=must switch toupsert=on migration; the talos caller already usesupsert=and is now correct as-is. - README install line corrected to the
git+sshform (wasgit+https). close()is synchronous (motor's close is sync) — not awaited.get_document_hashmap/get_document_fieldsskip docs missing the key (was an unguardeddoc[key]that swallowed a KeyError to{}/[]).
v0.1.0
- initial: async MongoDB wrapper over motor; wrapped methods log-and-swallow to safe
defaults; raw
.collection()/db[name]escape hatch raises.