make url_starts_with access level

This commit is contained in:
baoyachi 2021-09-27 12:34:53 +08:00
parent 203a0d603a
commit ae9e1c48ce

View File

@ -129,7 +129,7 @@ impl DatabaseConnection {
}
impl DbBackend {
pub fn url_starts_with(self, base_url: &str) -> bool {
pub(crate) fn url_starts_with(self, base_url: &str) -> bool {
match self {
Self::Postgres => {
base_url.starts_with("postgres://") || base_url.starts_with("postgresql://")