Rename LoggableStatement to PrintableStatement.

This commit is contained in:
go-jet 2020-06-01 18:22:24 +02:00
parent cd3325054b
commit e54e8fcabf
5 changed files with 9 additions and 9 deletions

View file

@ -2,14 +2,14 @@ package jet
import "context"
// LoggableStatement is a statement which sql query can be logged
type LoggableStatement interface {
// PrintableStatement is a statement which sql query can be logged
type PrintableStatement interface {
Sql() (query string, args []interface{})
DebugSql() (query string)
}
// LoggerFunc is a definition of a function user can implement to support automatic statement logging.
type LoggerFunc func(ctx context.Context, statement LoggableStatement)
type LoggerFunc func(ctx context.Context, statement PrintableStatement)
var logger LoggerFunc