Skip to content

Commit

Permalink
Rename DBType to Name
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed Oct 7, 2023
1 parent 9b06f22 commit 5dd2507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type sqlAdapter struct {
// Name of database type this adapter implements.
const Name string = "sqlite3"

// DBType of database adapter.
func (sqlAdapter) DBType() string {
// Name of database adapter.
func (sqlAdapter) Name() string {
return Name
}

Expand Down
4 changes: 2 additions & 2 deletions sqlite3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ func dsn() string {
return "./rel_test.db?_foreign_keys=1&_loc=Local"
}

func TestAdapter_DBType(t *testing.T) {
func TestAdapter_Name(t *testing.T) {
adapter, err := Open(dsn())
assert.Nil(t, err)
defer adapter.Close()

assert.Equal(t, Name, adapter.DBType())
assert.Equal(t, Name, adapter.Name())

Check failure on line 29 in sqlite3_test.go

View workflow job for this annotation

GitHub Actions / Build (1.17)

adapter.Name undefined (type rel.Adapter has no field or method Name)

Check failure on line 29 in sqlite3_test.go

View workflow job for this annotation

GitHub Actions / Build (1.18)

adapter.Name undefined (type rel.Adapter has no field or method Name)

Check failure on line 29 in sqlite3_test.go

View workflow job for this annotation

GitHub Actions / Build (1.19)

adapter.Name undefined (type rel.Adapter has no field or method Name)

Check failure on line 29 in sqlite3_test.go

View workflow job for this annotation

GitHub Actions / Build (1.20)

adapter.Name undefined (type rel.Adapter has no field or method Name)
}

func TestAdapter_specs(t *testing.T) {
Expand Down

0 comments on commit 5dd2507

Please sign in to comment.