In progress: Jeeves communication is now based on SQLAlchemy

This commit is contained in:
Marcus Lindvall 2019-04-05 16:50:38 +02:00
parent 0fdc029153
commit 28726fee01
21 changed files with 637 additions and 78 deletions

View file

@ -7,14 +7,14 @@
"""
import pymssql
import datetime
import logging
from pyjeeves import logging, config
class JvsQuery():
"""JvsQuery based on http://pymssql.org/en/stable/ """
def __init__(self, settings):
def __init__(self):
super(JvsQuery, self).__init__()
self.settings = settings
self.settings = config['jeeves_db']
self.logger = logging.getLogger("PyJeeves.jvsquery")
def _execute(self, query="", params=(), iterator=True):