1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/databases/mysql-xql/pkg-message
Philip M. Gollucci 417f3033b7 The lib_mysqludf_xql library provides an array of functions,
which can be used to create XML output directly from MySQL
using a single SQL query. This prevents having to convert a
MySQL result to XML in a PHP script, Ruby script, etc.

The library provides the same functionality as SQL/XML, seen
in MS SQL server and Oracle. However it uses normal functions.
By using subqueries the same results as SQL/XML can be generated.

WWW: http://www.mysqludf.org/lib_mysqludf_xql/index.php

PR:		ports/142086
Submitted by:	Mina R Waheeb <syncer at gmail.com>
2010-09-23 02:35:54 +00:00

35 lines
1.5 KiB
Plaintext

To add the custom functions to your MySQL server use the following syntax:
(you may install only the functions you need):
USE mysql;
DROP FUNCTION IF EXISTS lib_mysqludf_xql_info;
DROP FUNCTION IF EXISTS xql_textdecl;
DROP FUNCTION IF EXISTS xql_pi;
DROP FUNCTION IF EXISTS xql_dtd;
DROP FUNCTION IF EXISTS xql_element;
DROP FUNCTION IF EXISTS xql_forest;
DROP FUNCTION IF EXISTS xql_concat;
DROP FUNCTION IF EXISTS xql_agg;
DROP FUNCTION IF EXISTS xql_comment;
DROP FUNCTION IF EXISTS xql_cdata;
DROP FUNCTION IF EXISTS xql_encode;
CREATE FUNCTION lib_mysqludf_xql_info RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_textdecl RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_pi RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_dtd RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_element RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_forest RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_concat RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE AGGREGATE FUNCTION xql_agg RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_comment RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_cdata RETURNS STRING SONAME 'lib_mysqludf_xql.so';
CREATE FUNCTION xql_encode RETURNS STRING SONAME 'lib_mysqludf_xql.so';
Example for deinstalling a function:
DROP FUNCTION xql_encode;
For function descriptions, see the following webpage:
http://http://www.mysqludf.org/lib_mysqludf_xql/index.php