Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344266
db_utils.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
475 B
Subscribers
None
db_utils.py
View Options
# Copyright (C) 2015 Stefano Zacchiroli <zack@upsilon.cc>,
# Antoine R. Dumont <antoine.romain.dumont@gmail.com>
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import
psycopg2
def
db_connect
(
db_url
):
"""Given the db_url, return the couple (engine, session).
"""
return
psycopg2
.
connect
(
db_url
)
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 2:16 PM (1 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3452592
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment