diff --git a/engine/engine.go b/engine/engine.go index 70d30ae..9b072bb 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -203,6 +203,6 @@ func (this *Engine[T]) Execute(data T) error { return nil } -func NewEngine[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] { +func New[T any](table string, g contracts.GlobalParams, relations ...string) *Engine[T] { return &Engine[T]{code: table, g: g, relations: relations} }