ft3.template.pkg.clients module¶
A module containing an example database integration.
- class DatabaseClient¶
Bases:
objectA simple, example database client.
- classmethod delete_one(_id: str) Never | None¶
Delete an existing record from database.
- classmethod find_many(query: dict[str, Any]) list[Object]¶
Get records from database that match the query.
- classmethod insert_one(record: ObjectType) ObjectType¶
Add record to database.
- classmethod update_one(record: ObjectType) ObjectType¶
Update existing record in database.