feat: libsql basic support

This commit is contained in:
Nybkox
2025-03-11 15:11:35 +01:00
parent ba9e124527
commit 75b2debf0a
14 changed files with 368 additions and 51 deletions

View File

@@ -17,6 +17,7 @@
import FontIcon from '../icons/FontIcon.svelte';
import FormDropDownTextField from '../forms/FormDropDownTextField.svelte';
import { getConnectionLabel } from 'dbgate-tools';
import { _t } from '../translations';
export let getDatabaseList;
export let currentConnection;
@@ -153,6 +154,15 @@
/>
{/if}
{#if driver?.showConnectionField('authToken', $values, showConnectionFieldArgs)}
<FormTextField
label={_t('authToken', { defaultMessage: 'Auth token' })}
name="authToken"
data-testid="ConnectionDriverFields_authToken"
disabled={isConnected || disabledFields.includes('authToken')}
/>
{/if}
{#if $authTypes && driver?.showConnectionField('authType', $values, showConnectionFieldArgs)}
{#key $authTypes}
<FormSelectField