Skip to content

Commit e09a484

Browse files
committed
Temporarily disable sqlalchemy option
1 parent dbb9587 commit e09a484

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/project_info.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ fn copyright_year_prompt(license: &LicenseType, default: Option<String>) -> Resu
508508
Ok(input)
509509
}
510510

511-
#[cfg(feature = "fastapi")]
511+
/* #[cfg(feature = "fastapi")]
512512
fn database_manager_prompt(default: Option<DatabaseManager>) -> Result<DatabaseManager> {
513513
let default_str = match default {
514514
Some(d) => match d {
@@ -532,7 +532,7 @@ fn database_manager_prompt(default: Option<DatabaseManager>) -> Result<DatabaseM
532532
} else {
533533
bail!("Invalid selection");
534534
}
535-
}
535+
} */
536536

537537
pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
538538
let config = Config::default().load_config();
@@ -746,7 +746,8 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
746746
};
747747

748748
#[cfg(feature = "fastapi")]
749-
let database_manager = if is_fastapi_project {
749+
let database_manager = Some(DatabaseManager::AsyncPg);
750+
/* let database_manager = if is_fastapi_project {
750751
if use_defaults {
751752
Some(config.database_manager.unwrap_or_default())
752753
} else {
@@ -755,7 +756,7 @@ pub fn get_project_info(use_defaults: bool) -> Result<ProjectInfo> {
755756
}
756757
} else {
757758
None
758-
};
759+
}; */
759760

760761
let is_async_project = {
761762
#[cfg(feature = "fastapi")]

0 commit comments

Comments
 (0)