mirror of
https://github.com/Doctorado-ML/Stree_datasets.git
synced 2025-08-16 07:56:07 +00:00
Add local config a finish report_score
This commit is contained in:
@@ -45,12 +45,15 @@ class MySQL:
|
||||
if self._config_db["sqlite"] == "None":
|
||||
del self._config_db["sqlite"]
|
||||
self._config_db["buffered"] = True
|
||||
# self._config_db["auth_plugin"] = "mysql_native_password"
|
||||
self._database = mysql.connector.connect(**self._config_db)
|
||||
# kk = mysql.connector.connect(**self._config_db)
|
||||
# self._database = sqlite3.connect("./data/stree.sqlite")
|
||||
# self._database.row_factory = sqlite3.Row
|
||||
else:
|
||||
self._database = sqlite3.connect(self._config_db["sqlite"])
|
||||
# return dict as a result of select
|
||||
self._database.row_factory = sqlite3.Row
|
||||
|
||||
return self._database
|
||||
|
||||
def find_best(
|
||||
|
6
experimentation/local/.myconfig
Normal file
6
experimentation/local/.myconfig
Normal file
@@ -0,0 +1,6 @@
|
||||
host=127.0.0.1
|
||||
port=3306
|
||||
user=stree
|
||||
password=xtree
|
||||
database=stree
|
||||
sqlite=None
|
5
experimentation/local/.tunnel
Normal file
5
experimentation/local/.tunnel
Normal file
@@ -0,0 +1,5 @@
|
||||
ssh_address_or_host=("<host>","<port>")
|
||||
ssh_username=<user>
|
||||
ssh_private_key=<path_to>/id_rsa
|
||||
remote_bind_address=('127.0.0.1', 3306)
|
||||
enabled=0
|
Reference in New Issue
Block a user