mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-14 09:18:46 +02:00
fix: add check for postgresql prefix (#2825)
thanks for the speedy fix!
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user