()
| 135 | } |
| 136 | |
| 137 | func (fn *functionImpl) N1QLQueryName() (string, bool) { |
| 138 | if fn.isN1QL() { |
| 139 | return db.QueryTypeUserFunctionPrefix + fn.name, true |
| 140 | } else { |
| 141 | return "", false |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | // Creates an Invocation of a UserFunction. |
| 146 | func (fn *functionImpl) Invoke(database *db.Database, args map[string]any, mutationAllowed bool, ctx context.Context) (db.UserFunctionInvocation, error) { |