Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

How use with remote host #74

@denvut

Description

@denvut

Hello.
Please help me, if you can.
How use with remote host?
I tried in console:
ssh -L 5162:localhost:5432 admin@172.16.0.162

In connection settings:
{
"connections": {
"Connection 2": {
"type" : "pgsql",
"host" : "127.0.0.1",
"port" : 5162,
"username": "user",
"password": "12567",
"database": "base",
"encoding": "utf-8"
},
},
"default": "Connection 2"
}

in sublime console:
Traceback (most recent call last):
File "/home/denis/.config/sublime-text-3/Packages/SQLTools/SQLTools.py", line 217, in
Window().show_quick_panel(menu, lambda index: ST.setConnection(index, tablesCallback, columnsCallback, functionsCallback))
File "/home/denis/.config/sublime-text-3/Packages/SQLTools/SQLTools.py", line 202, in setConnection
ST.loadConnectionData(tablesCallback, columnsCallback, functionsCallback)
File "/home/denis/.config/sublime-text-3/Packages/SQLTools/SQLTools.py", line 189, in loadConnectionData
ST.conn.getTables(tbCallback)
File "/home/denis/.config/sublime-text-3/Packages/SQLTools/SQLToolsAPI/Connection.py", line 63, in getTables
query = self.getOptionsForSgdbCli()['queries']['desc']['query']
File "/home/denis/.config/sublime-text-3/Packages/SQLTools/SQLToolsAPI/Connection.py", line 162, in getOptionsForSgdbCli
return self.settings.get('cli_options', {}).get(self.type)
AttributeError: 'NoneType' object has no attribute 'get'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions