linstrom/src/storage/postgres.rs

37 lines
916 B
Rust
Raw Normal View History

2023-11-27 20:52:02 +00:00
// Copyright Melody 2023. Licensed under the EUPL-1.2 or later
use crate::storage;
struct PostgressDB {
}
impl storage::StorageAccess for PostgressDB {
fn store_message<E>(user: &str, message: &str) -> Result<storage::MediaID, E> {
todo!()
}
fn get_message<E>(user: &str, id: &storage::MessageID) -> Result<String, E> {
todo!()
}
fn delete_message<T, E>(id: &storage::MessageID) -> Result<T, E> {
todo!()
}
fn edit_message<T, E>(id: &storage::MessageID, message: &str) -> Result<T, E> {
todo!()
}
fn store_media<E>(f: &tokio::fs::File, nsfw: bool, alt_text: Option<&str>) -> Result<storage::MediaID, E> {
todo!()
}
fn get_media<E>(id: &storage::MediaID) -> Result<(tokio::fs::File, bool, Option<String>), E> {
todo!()
}
fn delete_media<T, E>(id: &storage::MediaID) -> Result<T, E> {
todo!()
}
}