File tree Expand file tree Collapse file tree
src/tools/database-connection-string-builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ const connectionString = computed(() => {
7070
7171 const effectivePort = getPort (dbType .value , port );
7272
73- const sslParam = ssl ? (format === ' uri' ? ' ssl=true' : ' Encrypt=true;' ) : ' ' ;
73+ const sslParam = ssl ? (format === ' uri' ? ' ssl=true' : ' Encrypt=true;' ) : ( format === ' uri ' ? ' ssl=false ' : ' Encrypt=false; ' ) ;
7474 const timeoutParam = timeout ? (format === ' uri' ? ` connectTimeout=${timeout } ` : ` Connection Timeout=${timeout }; ` ) : ' ' ;
7575 const extras = format === ' uri'
7676 ? [sslParam , timeoutParam , extra ].filter (Boolean ).join (' &' )
@@ -156,13 +156,16 @@ const connectionString = computed(() => {
156156 />
157157 </n-form-item >
158158
159- <template v-if =" dbType !== ' sqlite' && form . authType !== ' peer ' && form . authType !== ' windows ' && form . authType !== ' x509 ' " >
159+ <template v-if =" dbType !== ' sqlite' " >
160160 <n-form-item :label =" t('tools.database-connection-string-builder.texts.label-host')" >
161161 <n-input v-model:value =" form.host" :placeholder =" t('tools.database-connection-string-builder.texts.placeholder-e-g-localhost')" />
162162 </n-form-item >
163163 <n-form-item :label =" t('tools.database-connection-string-builder.texts.label-port')" >
164164 <n-input-number v-model:value =" form.port" :min =" 1" :max =" 65535" />
165165 </n-form-item >
166+ </template >
167+
168+ <template v-if =" dbType !== ' sqlite' && form .authType !== ' peer' && form .authType !== ' windows' && form .authType !== ' x509' " >
166169 <n-form-item :label =" t('tools.database-connection-string-builder.texts.label-username')" >
167170 <n-input v-model:value =" form.username" />
168171 </n-form-item >
You can’t perform that action at this time.
0 commit comments