Calls a user function by name, returning all the results at once.
(ctx context.Context, name string, args map[string]interface{}, mutationAllowed bool)
| 72 | |
| 73 | // Calls a user function by name, returning all the results at once. |
| 74 | func (db *Database) CallUserFunction(ctx context.Context, name string, args map[string]interface{}, mutationAllowed bool) (interface{}, error) { |
| 75 | invocation, err := db.GetUserFunction(ctx, name, args, mutationAllowed) |
| 76 | if err != nil { |
| 77 | return nil, err |
| 78 | } |
| 79 | return invocation.Run(ctx) |
| 80 | } |
| 81 | |
| 82 | //////// UTILITIES |
| 83 |