Separate exec types into files, document code (#10)
Go Tests / test (push) Successful in 1m2s
Go Tests / test (push) Successful in 1m2s
Reviewed-on: #10
This commit was merged in pull request #10.
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