aboutsummaryrefslogtreecommitdiff
path: root/query_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'query_test.go')
-rw-r--r--query_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/query_test.go b/query_test.go
index 7dde757..2d14a88 100644
--- a/query_test.go
+++ b/query_test.go
@@ -19,11 +19,12 @@ func TestInsertBasicUsingLastInsertId(t *testing.T) {
db := sql.OpenDB(md)
type basicRecord struct {
- ID int64 `db:"id,auto"`
- Name string `db:"name"`
+ ID int64 `oblast:"id,auto"`
+ Name string `oblast:"name"`
}
store := oblast.MustNewStore[basicRecord](
oblast.SqliteDialect(),
+ oblast.StructTagKeyIs("oblast"), // this test also randomly provides coverage for this option
oblast.TableNameIs("basic_records"),
oblast.PrimaryKeyIs("id"),
)