style: rustfmt
This commit is contained in:
@@ -3,8 +3,8 @@ use domain::{
|
||||
DomainError, Song, SongRepositoryPort, SongSummary, SortField, SortOrder, StoredSong,
|
||||
song_preview_chords,
|
||||
};
|
||||
use std::str::FromStr;
|
||||
use sqlx::SqlitePool;
|
||||
use std::str::FromStr;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::row::{SongRow, row_to_summary, sort_clause};
|
||||
@@ -16,8 +16,8 @@ pub struct SqliteSongRepository {
|
||||
|
||||
impl SqliteSongRepository {
|
||||
pub async fn new(database_url: &str) -> Result<Self, sqlx::Error> {
|
||||
let opts = sqlx::sqlite::SqliteConnectOptions::from_str(database_url)?
|
||||
.create_if_missing(true);
|
||||
let opts =
|
||||
sqlx::sqlite::SqliteConnectOptions::from_str(database_url)?.create_if_missing(true);
|
||||
let pool = SqlitePool::connect_with(opts).await?;
|
||||
sqlx::migrate!("./migrations").run(&pool).await?;
|
||||
Ok(Self { pool })
|
||||
|
||||
Reference in New Issue
Block a user