17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_SQL_UDF_H
21
#define DRIZZLED_SQL_UDF_H
20
#ifndef DRIZZLED_SLOT_FUNCTION_H
21
#define DRIZZLED_SLOT_FUNCTION_H
23
23
/* This file defines structures needed by udf functions */
25
25
#include <drizzled/function/func.h>
26
#include <drizzled/function/create.h>
30
enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
32
Function_builder *find_udf(const char *name, uint32_t len=0);
33
void free_udf(Function_builder *udf);
34
int mysql_create_function(Session *session,Function_builder *udf);
35
void add_udf(Function_builder *udf);
36
void remove_udf(Function_builder *udf);
38
#endif /* DRIZZLED_SQL_UDF_H */
26
#include <drizzled/plugin/function.h>
34
* Class to handle all Function plugin objects.
38
Registry<const plugin::Function *> udf_registry;
41
Function() : udf_registry() {}
45
* Add a new Function factory to the list of factories we manage.
47
void add(const plugin::Function *function_obj);
50
* Remove a Function factory from the list of factory we manage.
52
void remove(const plugin::Function *function_obj);
55
* Accept a new connection (Protocol object) on one of the configured
56
* listener interfaces.
58
const plugin::Function *get(const char *name, size_t len=0) const;
62
} /* end namespace slot */
63
} /* end namespace drizzled */
65
#endif /* DRIZZLED_SLOT_FUNCTION_H */