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
#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 */
25
#include "drizzled/function/func.h"
26
#include "drizzled/plugin/function.h"
27
#include "drizzled/registry.h"
35
* Class to handle all Function plugin objects.
39
Registry<const plugin::Function *> udf_registry;
42
Function() : udf_registry() {}
46
* Add a new Function factory to the list of factories we manage.
48
void add(const plugin::Function *function_obj);
51
* Remove a Function factory from the list of factory we manage.
53
void remove(const plugin::Function *function_obj);
56
* Accept a new connection (Protocol object) on one of the configured
57
* listener interfaces.
59
const plugin::Function *get(const char *name, size_t len=0) const;
63
} /* end namespace slot */
64
} /* end namespace drizzled */
66
#endif /* DRIZZLED_SLOT_FUNCTION_H */