934c745a91d6a4ae15e686da13aaf7441c4dda30,src/pudl/init.py,,connect_db,#Any#Any#,44
Before Change
pudl_settings = pudl.settings.init()
if testing:
return sa.create_engine(
sa.engine.url.URL(**pudl_settings["db_pudl_test"]) )
return sa.create_engine(
sa.engine.url.URL(**pudl_settings["db_pudl"]) )
def _create_tables(engine):
After Change
def connect_db(pudl_settings, testing=False):
Connect to the PUDL database using global settings from settings.py.
if testing:
return sa.create_engine(pudl_settings["pudl_test_db"] )
// else:
return sa.create_engine(pudl_settings["pudl_db"] )
def _create_tables(engine):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: catalyst-cooperative/pudl
Commit Name: 934c745a91d6a4ae15e686da13aaf7441c4dda30
Time: 2019-08-15
Author: zane.selvans@catalyst.coop
File Name: src/pudl/init.py
Class Name:
Method Name: connect_db
Project Name: catalyst-cooperative/pudl
Commit Name: fe5b17835a3e6a0907138ecda8512683a5c630dc
Time: 2019-05-25
Author: zane.selvans@catalyst.coop
File Name: pudl/extract/ferc1.py
Class Name:
Method Name: connect_db
Project Name: catalyst-cooperative/pudl
Commit Name: 934c745a91d6a4ae15e686da13aaf7441c4dda30
Time: 2019-08-15
Author: zane.selvans@catalyst.coop
File Name: src/pudl/init.py
Class Name:
Method Name: connect_db
Project Name: catalyst-cooperative/pudl
Commit Name: ed374e43783ff6cb58850aef22e4fa447ebbde61
Time: 2019-08-20
Author: cgosnell@catalyst.coop
File Name: src/pudl/init.py
Class Name:
Method Name: connect_db