You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
305 B
21 lines
305 B
package exql
|
|
|
|
import (
|
|
"github.com/upper/db/v4/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
|
|
}
|