Skip to content

Commit

Permalink
fix: derive fromsqlrow for tsconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-lilliemarck committed Oct 19, 2023
1 parent d031655 commit 378738d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ pub mod configuration {
use crate::RegConfig;

use diesel::backend::Backend;
use diesel::deserialize::{self, FromSql};
use diesel::deserialize::{self, FromSql, FromSqlRow};
use diesel::expression::{is_aggregate, ValidGrouping};
use diesel::pg::{Pg, PgValue};
use diesel::query_builder::{AstPass, QueryFragment, QueryId};
use diesel::serialize::{self, Output, ToSql};
use diesel::sql_types::Integer;
use diesel::{AppearsOnTable, Expression, QueryResult, SelectableExpression};

#[derive(Debug, PartialEq, Eq, diesel::expression::AsExpression)]
#[derive(Debug, PartialEq, Eq, diesel::expression::AsExpression, FromSqlRow)]
#[diesel(sql_type = RegConfig)]
pub struct TsConfiguration(pub u32);

Expand Down

0 comments on commit 378738d

Please sign in to comment.