Skip to content

Commit 2230609

Browse files
committedMay 25, 2017
added comments
1 parent 7ef9d6d commit 2230609

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/cs50/sql.py

+4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ def __init__(self, url, **kwargs):
1818
http://docs.sqlalchemy.org/en/latest/core/engines.html#sqlalchemy.create_engine
1919
http://docs.sqlalchemy.org/en/latest/dialects/index.html
2020
"""
21+
22+
# log statements to standard error
2123
logging.basicConfig(level=logging.DEBUG)
2224
self.logger = logging.getLogger(__name__)
25+
26+
# create engine, raising exception if back end's module not installed
2327
self.engine = sqlalchemy.create_engine(url, **kwargs)
2428

2529
def execute(self, text, **params):

0 commit comments

Comments
 (0)
Please sign in to comment.