mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-15 09:42:45 +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 {
|
impl DbSettings {
|
||||||
pub fn db_type(&self) -> DbType {
|
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
|
DbType::Postgres
|
||||||
} else if self.db_uri.starts_with("sqlite://") {
|
} else if self.db_uri.starts_with("sqlite://") {
|
||||||
DbType::Sqlite
|
DbType::Sqlite
|
||||||
|
Reference in New Issue
Block a user