mariadb insert

This commit is contained in:
2020-05-16 22:36:18 +02:00
parent 9907a66542
commit cec66d0028
4 changed files with 89 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ class mq():
def __init__(self, cfg):
parameters = pika.URLParameters('amqp://' + cfg.mquser + ':' +
cfg.mqpass + '@' + cfg.mqhost +
':5672/%2F')
':' + cfg.mqport +'/%2F')
connection = pika.BlockingConnection(parameters)
self.channel = connection.channel()
self.channel.queue_declare(queue=cfg.csv_queue, durable=True)