Browse Source

pass mysql port

master
dave 1 year ago
parent
commit
76dbd88114
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      nodepupper/nodeops.py
  2. +1
    -1
      setup.py

+ 3
- 2
nodepupper/nodeops.py View File

@@ -46,8 +46,9 @@ class NodeOps(object):
def __init__(self, db_uri):
uri = urlparse(db_uri)

self.mysql = MySQLAdapter(host=uri.hostname, user=uri.username, passwd=uri.password, db=uri.path[1:],
options=Options(keep_history=False))
self.mysql = MySQLAdapter(host=uri.hostname, port=uri.port,
user=uri.username, passwd=uri.password,
db=uri.path[1:], options=Options(keep_history=False))
self.storage = RelStorage(adapter=self.mysql)
self.db = ZODB.DB(self.storage)



+ 1
- 1
setup.py View File

@@ -4,7 +4,7 @@ from setuptools import setup
import os


__version__ = "0.0.3"
__version__ = "0.0.4"
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
__requirements__ = [line.strip() for line in f.readlines() if not line.startswith("-")]



Loading…
Cancel
Save