known driver available for that backend.
As the URL is like any other URL, **special characters such as those that may
-be used in the password need to be URL encoded to be parsed correctly.**. Below
-is an example of a URL that includes the password ``"kx%jj5/g"``, where the
+be used in the user and password need to be URL encoded to be parsed correctly.**.
+Below is an example of a URL that includes the password ``"kx%jj5/g"``, where the
percent sign and slash characters are represented as ``%25`` and ``%2F``,
respectively::
format of the URL is an RFC-1738-style string.
To create a new :class:`_engine.URL` object, use the
- :func:`_engine.url.make_url` function. To construct a :class:`_engine.URL`
+ :func:`.make_url` function. To construct a :class:`_engine.URL`
programmatically, use the :meth:`_engine.URL.create` constructor.
.. versionchanged:: 1.4
:class:`_engine.URL` object with modifications. See notes for this
change at :ref:`change_5526`.
+ .. seealso::
+
+ :ref:`database_urls`
+
:class:`_engine.URL` contains the following attributes:
* :attr:`_engine.URL.drivername`: database backend and driver name, such as
) -> URL:
"""Create a new :class:`_engine.URL` object.
+ .. seealso::
+
+ :ref:`database_urls`
+
:param drivername: the name of the database backend. This name will
correspond to a module in sqlalchemy/databases or a third party
plug-in.
The given string is parsed according to the RFC 1738 spec. If an
existing URL object is passed, just returns the object.
+ .. seealso::
+
+ :ref:`database_urls`
+
"""
if isinstance(name_or_url, str):