Page MenuHomeSoftware Heritage

db_utils.py
No OneTemporary

db_utils.py

# 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

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

Event Timeline