diff options
| author | Scotte Zinn <scotte@zinn.ca> | 2025-07-16 11:53:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 16:53:25 +0100 |
| commit | 403d4a1141f8d30ca80f3c05e3bce6aca73ef067 (patch) | |
| tree | 5faad8991d09edd6f61fbb1f3fc29e9244224451 /crates/atuin-server-database/src | |
| parent | chore: update changelog (diff) | |
| download | atuin-403d4a1141f8d30ca80f3c05e3bce6aca73ef067.zip | |
fix: add check for postgresql prefix (#2825)
thanks for the speedy fix!
Diffstat (limited to '')
| -rw-r--r-- | crates/atuin-server-database/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-server-database/src/lib.rs b/crates/atuin-server-database/src/lib.rs index 9df36d14..e70c755c 100644 --- a/crates/atuin-server-database/src/lib.rs +++ b/crates/atuin-server-database/src/lib.rs @@ -55,7 +55,7 @@ pub struct DbSettings { impl DbSettings { pub fn db_type(&self) -> DbType { - if self.db_uri.starts_with("postgres://") { + if self.db_uri.starts_with("postgres://") || self.db_uri.starts_with("postgresql://") { DbType::Postgres } else if self.db_uri.starts_with("sqlite://") { DbType::Sqlite |
