From 9191e018ff90deb99f3881966a5d356a05027e0f Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 14 Apr 2026 00:41:25 +0200 Subject: initial test coverage for Store.Select functions --- internal/plan.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/plan.go') diff --git a/internal/plan.go b/internal/plan.go index f619a5f..b57b8dd 100644 --- a/internal/plan.go +++ b/internal/plan.go @@ -14,6 +14,7 @@ import ( // Plan holds all information that we can derive from reflecting on a given type. // The queries held within are only valid within the context of a given SQL dialect. type Plan struct { + TypeName string // for use in error messages TableName string // from info.TableNameIs marker (if any) AllColumnNames []string // in order of struct fields PrimaryKeyColumnNames []string // from info.PrimaryKeyIs marker (if any) @@ -64,6 +65,7 @@ func buildPlan(t reflect.Type, dialect Dialect, opts PlanOpts) (Plan, error) { } var p = Plan{ + TypeName: t.Name(), TableName: opts.TableName, PrimaryKeyColumnNames: opts.PrimaryKeyColumnNames, IndexByColumnName: make(map[string][]int), -- cgit v1.2.3