'url_starts_with' replace with 'is_prefix_of' method
This commit is contained in:
parent
d78a067b2d
commit
8d69b034a0
@ -129,7 +129,7 @@ impl DatabaseConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl DbBackend {
|
impl DbBackend {
|
||||||
pub(crate) fn is_prefix_of(self, base_url: &str) -> bool {
|
pub fn is_prefix_of(self, base_url: &str) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Self::Postgres => {
|
Self::Postgres => {
|
||||||
base_url.starts_with("postgres://") || base_url.starts_with("postgresql://")
|
base_url.starts_with("postgres://") || base_url.starts_with("postgresql://")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user