Skip to content

Commit

Permalink
driverName: "duckdb" and return type DataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Nov 14, 2024
1 parent 47479cf commit 4cb8499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sqlutil/test_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
)

// NewInMemoryDataSource returns a new in-memory DataSource
func NewInMemoryDataSource(t *testing.T) *sqlx.DB {
db, err := sqlx.Open("ramsql", t.Name())
func NewInMemoryDataSource(t *testing.T) DataSource {
db, err := sqlx.Open("duckdb", t.Name())
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, db.Close()) })
return db
Expand Down

0 comments on commit 4cb8499

Please sign in to comment.