github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/sqlx/builder/builder_expr_by.go (about)

     1  package builder
     2  
     3  import "context"
     4  
     5  type by struct {
     6  	build func(context.Context) *Ex
     7  }
     8  
     9  func (b *by) IsNil() bool {
    10  	return b == nil || b.build == nil
    11  }
    12  
    13  func (b *by) Ex(ctx context.Context) *Ex {
    14  	return b.build(ctx)
    15  }