pi_dashboard.db.notes_database_manager¶
Notes database manager.
Classes
|
Notes table. |
|
Manager class for notes database operations. |
- class pi_dashboard.db.notes_database_manager.NoteEntryDB(*, id=None, title, content, time_created, time_updated)[source]¶
Notes table.
- classmethod from_note_entry(note_entry)[source]¶
Create a NoteEntryDB instance from a NoteEntry.
- Return type:
- update_from_note_entry(note_entry)[source]¶
Update the database model fields from a NoteEntry.
- Return type:
- __init__(**data)¶
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- class pi_dashboard.db.notes_database_manager.NotesDatabaseManager(db_config)[source]¶
Manager class for notes database operations.
- __init__(db_config)[source]¶
Initialize the NotesDatabaseManager with the given database configuration.
- db_config: DashboardDatabaseConfig¶