neosqlite.requests module¶
- class neosqlite.requests.InsertOne(document: dict[str, Any])[source]¶
Bases:
objectRepresents an insert operation for a single document.
- class neosqlite.requests.UpdateOne(filter: dict[str, Any], update: dict[str, Any], upsert: bool = False)[source]¶
Bases:
objectRepresents an update operation for a single document.
- __init__(filter: dict[str, Any], update: dict[str, Any], upsert: bool = False)[source]¶
Initialize an UpdateOne object.
- Parameters:
filter (dict[str, Any]) – The filter criteria for selecting the document to update.
update (dict[str, Any]) – The update operations to apply to the selected document.
upsert (bool, optional) – If True, insert the document if no document matches the filter criteria. Defaults to False.