// Clone returns a duplicate of the FactTypeQuery builder, including all associated steps. It can be
// used to prepare common query builders and use them differently after the clone is made.
Clone returns a duplicate of the FactTypeQuery builder, including all associated steps. It can be
used to prepare common query builders and use them differently after the clone is made.
// Clone returns a duplicate of the FactTypeQuery builder including all associated steps . It can be // used to prepare common query builders and use them differently after the clone is made .
func (ftq *FactTypeQuery) Clone() *FactTypeQuery {
	if ftq == nil {
		return nil
	}
	return &FactTypeQuery{
		config:     ftq.config,
		limit:      ftq.limit,
		offset:     ftq.offset,
		order:      append([]OrderFunc{}, ftq.order...),
		predicates: append([]predicate.FactType{}, ftq.predicates...),
		withFacts:  ftq.withFacts.Clone(),
		sql:  ftq.sql.Clone(),
		path: ftq.path,
	}
}
func ( ftq * FactTypeQuery ) Clone ( ) * FactTypeQuery { if ftq == nil { return nil } return & FactTypeQuery { config : ftq . config , limit : ftq . limit , offset : ftq . offset , order : append ( [ ] OrderFunc { } , ftq . order ... ) , predicates : append ( [ ] predicate . FactType { } , ftq . predicates ... ) , withFacts : ftq . withFacts . Clone ( ) , sql : ftq . sql . Clone ( ) , path : ftq . path , } }
Clone returns a duplicate of the FactTypeQuery builder, including all associated steps.
Clone returns a duplicate of the FactTypeQuery builder including all associated steps .
// clone intermediate query.