ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
folder_repository Class Referencefinal

Repository for managing folders in the SQLite database. More...

#include <folder_repository.hpp>

Collaboration diagram for folder_repository:
Collaboration graph

Public Member Functions

 folder_repository (sqlite_context &ctx)
 
void write (const domain::folder &f)
 Create or update a folder.
 
void write (const std::vector< domain::folder > &folders)
 Create or update multiple folders.
 
std::vector< domain::folderread_all ()
 Read all folders.
 
std::optional< domain::folderread_by_id (const boost::uuids::uuid &id)
 Read a folder by ID.
 
std::vector< domain::folderread_by_parent (const std::optional< boost::uuids::uuid > &parent_id)
 Read folders by parent ID (null for root folders).
 
void remove (const boost::uuids::uuid &id)
 Delete a folder by ID.
 

Detailed Description

Repository for managing folders in the SQLite database.