chore: remove features that don't compile
add: posts "circle" column
This commit is contained in:
parent
0310418837
commit
50704d27a9
42 changed files with 71 additions and 365 deletions
|
@ -11,14 +11,7 @@ use serde::Serialize;
|
|||
use tetratto_shared::unix_epoch_timestamp;
|
||||
use crate::{auto_method, DataManager};
|
||||
|
||||
#[cfg(feature = "redis")]
|
||||
use oiseau::cache::redis::Commands;
|
||||
|
||||
#[cfg(feature = "sqlite")]
|
||||
use oiseau::SqliteRow;
|
||||
|
||||
#[cfg(feature = "postgres")]
|
||||
use oiseau::PostgresRow;
|
||||
use oiseau::{PostgresRow, cache::redis::Commands};
|
||||
|
||||
use oiseau::{execute, get, query_rows, params};
|
||||
|
||||
|
@ -29,10 +22,7 @@ struct DeleteMessageEvent {
|
|||
|
||||
impl DataManager {
|
||||
/// Get a [`Message`] from an SQL row.
|
||||
pub(crate) fn get_message_from_row(
|
||||
#[cfg(feature = "sqlite")] x: &SqliteRow<'_>,
|
||||
#[cfg(feature = "postgres")] x: &PostgresRow,
|
||||
) -> Message {
|
||||
pub(crate) fn get_message_from_row(x: &PostgresRow) -> Message {
|
||||
Message {
|
||||
id: get!(x->0(i64)) as usize,
|
||||
channel: get!(x->1(i64)) as usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue