Separate execs into their own files
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ type Select[T any] struct {
|
||||
}
|
||||
|
||||
// Creates the select query builder
|
||||
func CreateSelect[T any](orm *simpleorm.ORM) (Select[T], error) {
|
||||
func NewSelect[T any](orm *simpleorm.ORM) (Select[T], error) {
|
||||
table, ok := orm.Cache().Get(reflect.TypeFor[T]().Name())
|
||||
if !ok {
|
||||
return Select[T]{}, errors.New("Failed to get table from schema cache")
|
||||
|
||||
Reference in New Issue
Block a user