@@ -29,7 +29,7 @@ def __init__(self, name, options, settings={}, commandClass='ThreadCommand'):
29
29
30
30
if cli_path is None :
31
31
Log ((
32
- "'{0}' could not be found by Sublime Text .\n \n " +
32
+ "'{0}' could not be found.\n \n " +
33
33
"Please set the '{0}' path in your SQLTools settings " +
34
34
"before continue." ).format (self .cli ))
35
35
return
@@ -38,14 +38,14 @@ def __init__(self, name, options, settings={}, commandClass='ThreadCommand'):
38
38
self .rowsLimit = settings .get ('show_records' , {}).get ('limit' , 50 )
39
39
self .options = options
40
40
self .name = name
41
- self .type = options [ 'type' ]
42
- self .database = options [ 'database' ]
43
- self .host = options [ 'host' ] if 'host' in options else None
44
- self .port = options [ 'port' ] if 'port' in options else None
45
- self .username = options [ 'username' ] if 'username' in options else None
46
- self .encoding = options [ 'encoding' ] if 'encoding' in options else None
47
- self .password = options [ 'password' ] if 'password' in options else None
48
- self .service = options [ 'service' ] if 'service' in options else None
41
+ self .type = options . get ( 'type' , None )
42
+ self .database = options . get ( 'database' , None )
43
+ self .host = options . get ( 'host' , None )
44
+ self .port = options . get ( 'port' , None )
45
+ self .username = options . get ( 'username' , None )
46
+ self .encoding = options . get ( 'encoding' , None )
47
+ self .password = options . get ( 'password' , None )
48
+ self .service = options . get ( 'service' , None )
49
49
50
50
def __str__ (self ):
51
51
return self .name
0 commit comments