Rust docs (#681)

This commit is contained in:
thesimplekid
2025-03-25 23:27:38 +00:00
committed by GitHub
parent 1e20e8fc2b
commit 7b4951041e
77 changed files with 795 additions and 80 deletions

View File

@@ -24,7 +24,7 @@ pub struct MintSqliteAuthDatabase {
}
impl MintSqliteAuthDatabase {
/// Create new [`MintSqliteDatabase`]
/// Create new [`MintSqliteAuthDatabase`]
pub async fn new(path: &Path) -> Result<Self, Error> {
let path = path.to_str().ok_or(Error::InvalidDbPath)?;
let db_options = SqliteConnectOptions::from_str(path)?
@@ -41,7 +41,7 @@ impl MintSqliteAuthDatabase {
Ok(Self { pool })
}
/// Migrate [`MintSqliteDatabase`]
/// Migrate [`MintSqliteAuthDatabase`]
pub async fn migrate(&self) {
sqlx::migrate!("./src/mint/auth/migrations")
.run(&self.pool)