Skip to main content

toasty_driver_integration_suite/scenarios/
counter_value.rs

1use crate::prelude::*;
2
3scenario! {
4    #[derive(Debug, toasty::Model)]
5    struct Counter {
6        #[key]
7        id: uuid::Uuid,
8
9        value: i64,
10    }
11
12    async fn setup(test: &mut Test) -> toasty::Db {
13        test.setup_db(models!(Counter)).await
14    }
15}