Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeName ¶
Types ¶
type Config ¶
type Config struct { FeaturesTable string // EscapeName is used to escape the feature's FQN. EscapeName func(s string) string // SubtractDuration is used to subtract a duration from a field with your SQL flavor. SubtractDuration func(d time.Duration, field string) string // CastFeature is used to cast a feature to a specific type for your SQL flavor. CastFeature func(ft api.FeatureDescriptor) string // TmpName is used to generate a temporary table name. TmpName func(s string) string }
type QueryBuilder ¶
type QueryBuilder interface { FeatureSet(ctx context.Context, fs manifests.ModelSpec, getter api.FeatureDescriptorGetter) (query string, err error) Feature(feature api.FeatureDescriptor) (string, error) }
func New ¶
func New(config Config) QueryBuilder
Click to show internal directories.
Click to hide internal directories.