diff --git a/runtime/drivers/duckdb/transporter/sqlextension_to_duckDB.go b/runtime/drivers/duckdb/transporter/sqlextension_to_duckDB.go index 46591081c8c..c162e0b0e80 100644 --- a/runtime/drivers/duckdb/transporter/sqlextension_to_duckDB.go +++ b/runtime/drivers/duckdb/transporter/sqlextension_to_duckDB.go @@ -37,7 +37,7 @@ func (t *sqlextensionToDuckDB) Transfer(ctx context.Context, source drivers.Sour return fmt.Errorf("type of source should be `drivers.DatabaseSink`") } - extensionName := extName(t.from.Driver()) + extensionName := t.from.Driver() if err := t.to.Exec(ctx, &drivers.Statement{Query: fmt.Sprintf("INSTALL '%s'; LOAD '%s';", extensionName, extensionName)}); err != nil { return fmt.Errorf("failed to load %s extension %w", extensionName, err) } @@ -48,8 +48,3 @@ func (t *sqlextensionToDuckDB) Transfer(ctx context.Context, source drivers.Sour return t.to.Exec(ctx, &drivers.Statement{Query: query, Priority: 1}) } - -func extName(name string) string { - before, _ := strings.CutSuffix(name, "_ext") - return before -} diff --git a/runtime/drivers/sqlite/sqlite.go b/runtime/drivers/sqlite/sqlite.go index 98288f203d8..c3877bd96aa 100644 --- a/runtime/drivers/sqlite/sqlite.go +++ b/runtime/drivers/sqlite/sqlite.go @@ -66,7 +66,7 @@ func (d driver) Spec() drivers.Spec { Required: true, DisplayName: "SQL", Description: "Query to extract data from SQLite", - Placeholder: "SELECT * FROM sqlite_scan('/Users/kanshul/.config/gcloud/access_tokens.db', 'film');", + Placeholder: "SELECT * FROM sqlite_scan('sqlite.db', 'film');", Hint: "https://duckdb.org/docs/extensions/sqlite_scanner#querying-individual-tables", }, }, diff --git a/web-common/src/features/sources/modal/AddSourceModal.svelte b/web-common/src/features/sources/modal/AddSourceModal.svelte index de50a5ab278..26d33fe8433 100644 --- a/web-common/src/features/sources/modal/AddSourceModal.svelte +++ b/web-common/src/features/sources/modal/AddSourceModal.svelte @@ -92,7 +92,7 @@