mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-18 01:16:43 +00:00
Update PgConn
This commit is contained in:
parent
3bd9f03996
commit
24230cdc1e
@ -316,10 +316,10 @@ class PgConn:
|
|||||||
def __init__(self, logger=None, **kwargs):
|
def __init__(self, logger=None, **kwargs):
|
||||||
self._conn_args = kwargs
|
self._conn_args = kwargs
|
||||||
self.conn = psycopg2.connect(**kwargs)
|
self.conn = psycopg2.connect(**kwargs)
|
||||||
self.cur = self.conn.cursor()
|
|
||||||
self._logger = logger
|
self._logger = logger
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
|
self.cur = self.conn.cursor()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def exec(self, query_string, args=None):
|
def exec(self, query_string, args=None):
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="hexlib",
|
name="hexlib",
|
||||||
version="1.86",
|
version="1.87",
|
||||||
description="Misc utility methods",
|
description="Misc utility methods",
|
||||||
author="simon987",
|
author="simon987",
|
||||||
author_email="me@simon987.net",
|
author_email="me@simon987.net",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user