fhirpath.connectors package

Submodules

fhirpath.connectors.connection module

class fhirpath.connectors.connection.Connection(conn)[source]

Bases: object

classmethod from_config(config: dict)[source]
classmethod from_prepared(conn)[source]

Connection instance creation, using already prepared RAW connection

classmethod from_url(url: str)[source]

1.) may be use connector utilities 2.) may be url parser

classmethod is_async()[source]
property raw_connection

fhirpath.connectors.interfaces module

fhirpath.connectors.url module

Idea has been take from SQLAlchemy @from: sqlalchemy/engine/url.py But we modified according to our requirements. ——————————————————————- Copyright (C) 2005-2019 the SQLAlchemy authors and contributors <see AUTHORS file> This module is part of SQLAlchemy and is released under the MIT License: http://www.opensource.org/licenses/mit-license.php ——————————————————————–

class fhirpath.connectors.url.URL(drivername, username=None, password=None, host=None, port=None, database=None, query=None)[source]

Bases: object

Represent the components of a URL used to connect to a database.

This object is suitable to be passed directly to a create_engine() call. The fields of the URL are parsed from a string by the make_url() function. the string format of the URL is an RFC-1738-style string.

All initialization parameters are available as public attributes.

Parameters
  • drivername – the name of the database backend. This name will correspond to a module in sqlalchemy/databases or a third party plug-in.

  • username – The user name.

  • password – database password.

  • host – The name of the host.

  • port – The port number.

  • database – The database name.

  • query – A dictionary of options to be passed to the dialect and/or the DBAPI upon connect.

get_backend_name()[source]
get_driver_name()[source]
property password
translate_connect_args(names=None, **kw)[source]

Translate url attributes into a dictionary of connection arguments.

Returns attributes of this url (host, database, username, password, port) as a plain dictionary. The attribute names are used as the keys by default. Unset or false attributes are omitted from the final dictionary.

Parameters
  • **kw – Optional, alternate key names for url attributes.

  • names – Deprecated. Same purpose as the keyword-based alternate names, but correlates the name to the original positionally.

fhirpath.connectors.url.to_list(x, default=None)[source]

Module contents

fhirpath.connectors.create_connection(conn_string, klass=None, **extra)[source]
fhirpath.connectors.make_url(connection_str)[source]