diff --git a/sqlx-store/src/mysql_store.rs b/sqlx-store/src/mysql_store.rs index 5afbf44..d8ca6f4 100644 --- a/sqlx-store/src/mysql_store.rs +++ b/sqlx-store/src/mysql_store.rs @@ -22,7 +22,7 @@ impl MySqlStore { /// # Examples /// /// ```rust,no_run - /// use tower_sessions_sqlx::{sqlx::MySqlPool, MySqlStore}; + /// use tower_sessions_sqlx_store::{sqlx::MySqlPool, MySqlStore}; /// /// # tokio_test::block_on(async { /// let database_url = std::option_env!("DATABASE_URL").unwrap(); @@ -75,7 +75,7 @@ impl MySqlStore { /// # Examples /// /// ```rust,no_run - /// use tower_sessions_sqlx::{sqlx::MySqlPool, MySqlStore}; + /// use tower_sessions_sqlx_store::{sqlx::MySqlPool, MySqlStore}; /// /// # tokio_test::block_on(async { /// let database_url = std::option_env!("DATABASE_URL").unwrap(); diff --git a/sqlx-store/src/sqlite_store.rs b/sqlx-store/src/sqlite_store.rs index 996ba43..5e4417c 100644 --- a/sqlx-store/src/sqlite_store.rs +++ b/sqlx-store/src/sqlite_store.rs @@ -116,7 +116,7 @@ impl ExpiredDeletion for SqliteStore { let query = format!( r#" delete from {table_name} - where expiry_date < datetime('now', 'utc') + WHERE datetime(expiry_date) < datetime('now') "#, table_name = self.table_name );