3
0

Fix store codegen template

This commit is contained in:
Denis Arh 2022-07-03 12:55:31 +02:00
parent 2b87ef2577
commit 188b7f3b44
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import (
{{- range $path, $alias := .imports }}
{{ $alias }} {{ printf "%q" $path }}
{{- end }}
"github.com/cortezaproject/corteza-server/pkg/dal"
"github.com/cortezaproject/corteza-server/pkg/locale"
"golang.org/x/text/language"
)

View File

@ -34,12 +34,12 @@ type (
// and it's highly unlikely we'll support different/multiple logging "backend"
SetLogger(*zap.Logger)
// Tx is a transaction handler
Tx(context.Context, func(context.Context, Storer) error) error
// Returns underlying store as DAL connection
ToDalConn() dal.Connection
// Tx is a transaction handler
Tx(context.Context, func(context.Context, Storer) error) error
// Upgrade store's schema to the latest version
Upgrade(context.Context) error
Actionlogs