Commit a47c626a authored by nextime's avatar nextime

first commit

parents
MYSQL_PLUGINDIR=$(shell mysql_config --plugindir)
install:
gcc -Wall -I/usr/include/mysql -I. -fPIC -shared lib_mysqludf_json.c -o $(MYSQL_PLUGINDIR)/lib_mysqludf_jsontools.so
CREATE FUNCTION json_members RETURNS STRING SONAME 'lib_mysqludf_jsontools.so';
CREATE FUNCTION json_object RETURNS STRING SONAME 'lib_mysqludf_jsontools.so';
CREATE FUNCTION json_array RETURNS STRING SONAME 'lib_mysqludf_jsontools.so';
CREATE FUNCTION json_values RETURNS STRING SONAME 'lib_mysqludf_jsontools.so';
This diff is collapsed.
This diff is collapsed.
/*
lib_mysqludf_json - a library of mysql udfs to map data to JSON format
Copyright (C) 2007 Roland Bouman
web: http://www.xcdsql.org/MySQL/UDF/
email: mysqludfs@gmail.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
drop function lib_mysqludf_json_info;
drop function json_array;
drop function json_members;
drop function json_object;
drop function json_values;
create function lib_mysqludf_json_info returns string soname 'lib_mysqludf_json.so';
create function json_array returns string soname 'lib_mysqludf_json.so';
create function json_members returns string soname 'lib_mysqludf_json.so';
create function json_object returns string soname 'lib_mysqludf_json.so';
create function json_values returns string soname 'lib_mysqludf_json.so';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment