summaryrefslogtreecommitdiff
path: root/src/repo/sequence.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo/sequence.rs')
-rw-r--r--src/repo/sequence.rs27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/repo/sequence.rs b/src/repo/sequence.rs
index c47b41c..c985869 100644
--- a/src/repo/sequence.rs
+++ b/src/repo/sequence.rs
@@ -1,7 +1,7 @@
-use std::fmt;
-
use sqlx::{sqlite::Sqlite, SqliteConnection, Transaction};
+use crate::event::Sequence;
+
pub trait Provider {
fn sequence(&mut self) -> Sequences;
}
@@ -42,26 +42,3 @@ impl<'c> Sequences<'c> {
Ok(next)
}
}
-
-#[derive(
- Clone,
- Copy,
- Debug,
- Eq,
- Ord,
- PartialEq,
- PartialOrd,
- serde::Deserialize,
- serde::Serialize,
- sqlx::Type,
-)]
-#[serde(transparent)]
-#[sqlx(transparent)]
-pub struct Sequence(i64);
-
-impl fmt::Display for Sequence {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- let Self(value) = self;
- value.fmt(f)
- }
-}