mydb/internal/sqladapter/exql/interfaces.go

21 lines
306 B
Go
Raw Permalink Normal View History

2023-09-18 15:15:42 +08:00
package exql
import (
"git.hexq.cn/tiglog/mydb/internal/cache"
)
// Fragment is any interface that can be both cached and compiled.
type Fragment interface {
cache.Hashable
compilable
}
type compilable interface {
Compile(*Template) (string, error)
}
type hasIsEmpty interface {
IsEmpty() bool
}