MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_backend_name

Method get_backend_name

lib/sqlalchemy/engine/url.py:706–717  ·  view source on GitHub ↗

Return the backend name. This is the name that corresponds to the database backend in use, and is the portion of the :attr:`_engine.URL.drivername` that is to the left of the plus sign.

(self)

Source from the content-addressed store, hash-verified

704 return not self == other
705
706 def get_backend_name(self) -> str:
707 """Return the backend name.
708
709 This is the name that corresponds to the database backend in
710 use, and is the portion of the :attr:`_engine.URL.drivername`
711 that is to the left of the plus sign.
712
713 """
714 if "+" not in self.drivername:
715 return self.drivername
716 else:
717 return self.drivername.split("+")[0]
718
719 def get_driver_name(self) -> str:
720 """Return the backend name.

Callers 9

generate_driver_urlFunction · 0.80
generate_driver_urlFunction · 0.80
__call__Method · 0.80
is_preferred_driverFunction · 0.80
generate_driver_urlFunction · 0.80
reap_dbsFunction · 0.80
_format_descriptionMethod · 0.80

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected