Code cleanup

Moved migrations/ into entity/
MessageIds now return errors except for API ones
This commit is contained in:
2024-02-03 16:21:16 +03:00
parent 64e3210cc5
commit bd10acb438
13 changed files with 67 additions and 62 deletions

View File

@ -5,6 +5,8 @@ pub mod account;
pub mod master_pass;
pub mod prelude;
pub use sqlx::Result;
pub use sqlx::{mysql::MySqlPool as Pool, Result};
pub type Pool = sqlx::mysql::MySqlPool;
pub async fn migrate(pool: &Pool) -> Result<(), sqlx::migrate::MigrateError> {
sqlx::migrate!().run(pool).await
}

View File

@ -1,2 +1 @@
pub use crate::account::Account;
pub use crate::master_pass::MasterPass;
pub use crate::{account::Account, master_pass::MasterPass, Pool};