neosqlite.requests module

class neosqlite.requests.InsertOne(document: dict[str, Any])[source]

Bases: object

Represents an insert operation for a single document.

__init__(document: dict[str, Any])[source]

Initialize an InsertOne object.

Parameters:

document (dict[str, Any]) – The document to be inserted.

class neosqlite.requests.UpdateOne(filter: dict[str, Any], update: dict[str, Any], upsert: bool = False)[source]

Bases: object

Represents 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.

class neosqlite.requests.DeleteOne(filter: dict[str, Any])[source]

Bases: object

Represents a delete operation for a single document.

__init__(filter: dict[str, Any])[source]

Initialize a DeleteOne object.

Parameters:

filter (dict[str, Any]) – The filter criteria for selecting the document to delete.