Adds a function to the catalog. Returns true if the function was successfully added. Returns false if the function already exists. TODO: allow adding a function to a global scope. We probably want this to resolve after the local scope. e.g. if we had fn() and db.fn(). If the current database is 'db'
(Function fn)
| 385 | * resolve first to db.fn(). |
| 386 | */ |
| 387 | public boolean addFunction(Function fn) { |
| 388 | Db db = getDb(fn.dbName()); |
| 389 | if (db == null) return false; |
| 390 | return db.addFunction(fn); |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * Returns the function that best matches 'desc' that is registered with the |
nothing calls this directly
no test coverage detected