Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Indexer:
- def __init__(self):
- self.conn = psycopg2.connect("dbname='postgres' user='postgres' password='120789' host='localhost'")
- self.cur = self.conn.cursor()
- self.cur.execute("set search_path to 'rambler_search'")
- self.grab = Grab()
- def __del__(self):
- self.conn.close()
- def dbcommit(self):
- self.conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement