Skip to content

能否自定义field类型,现在expr是私有的,没办法拓展 #460

@szmgfcsp

Description

@szmgfcsp

Describe the feature

框架的expr(field/expr.go)没办法拓展,如果能开放就好了,然后大家可以一起来丰富类型, @RiverChu

type expression interface{}

type sql string

func (e sql) String() string { return string(e) }

type expr struct {
	col clause.Column

	e         clause.Expression
	buildOpts []BuildOpt
}

目前我想实现自己的类型应该怎么做,不然全是 field.Field,只能用过定义接口来实现 ApplyInterface 来实现,比较麻烦

Motivation

Related Issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions