264fcdaecf3a27681c7a45edcbd743687b5d83c5,Orange/data/sql/table.py,SqlTable,__init__,#SqlTable#Any#Any#Any#Any#Any#Any#Any#,19
Before Change
if uri is not None:
parsed_uri = parse.urlparse(uri)
host = parsed_uri.hostname
path = parsed_uri.path.strip("/")
database, table = path.split("/")
user = parsed_uri.username
password = parsed_uri.password
scheme = "pgsql"
self.host = host
After Change
assert uri is not None or table is not None
connection_args = dict(
host=host,
user=user,
password=password,
database=database,
schema=schema
)
if uri is not None:
parameters = self._parse_uri(uri)
table = parameters.pop("table")
connection_args.update(parameters)
self.connection = psycopg2.connect(**connection_args)
self.table_name = self.name = table
self.domain = self._create_domain()
self.name = self.table_name
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: biolab/orange3
Commit Name: 264fcdaecf3a27681c7a45edcbd743687b5d83c5
Time: 2013-08-19
Author: anze.staric@gmail.com
File Name: Orange/data/sql/table.py
Class Name: SqlTable
Method Name: __init__
Project Name: scikit-image/scikit-image
Commit Name: 2eb9e2686dabb686c8114760abec9d5546c24fc6
Time: 2017-12-20
Author: contact@kne42.me
File Name: doc/release/contribs.py
Class Name:
Method Name:
Project Name: MolSSI/QCEngine
Commit Name: e5fa5b3d6c77618aae53b450d549531942cadffa
Time: 2021-02-10
Author: max.scheurer@me.com
File Name: qcengine/programs/adcc.py
Class Name: AdccHarness
Method Name: compute