mariadb/storage/federatedx
Sergei Golubchik e054d8b874 MDEV-37815 connect_string in partitioning is broken
let's simplify the code by removing copying of part_elem->connect_string
to table->s->connect_string. Move CONNECTION support from he server into
engines, engines define TOPTION("CONNECTION") if they want to support it,
it's stored in the option_struct and handled by the option_struct fix.
Problems:

* Mroonga used CONNECTION for something but there were no tests for it.
  Removed Mroonga support for CONNECTION as requested by the maintainer
  in MDEV-38530
* DROP/ALTER SERVER command used to close all tables using the server
  in question, avoiding the need for FLUSH TABLES. This functionality
  never worked for partitioned tables anyway and is now removed. Will be
  done properly in MDEV-37827.
2026-02-06 17:46:52 +01:00
..
AUTHORS Lintian complains on spelling error 2019-12-02 12:41:13 +02:00
ChangeLog Added federatedx storage engine 2009-10-30 20:50:56 +02:00
CMakeLists.txt Merge branch '10.5' into 10.6 2022-11-02 14:33:20 +01:00
FAQ Added federatedx storage engine 2009-10-30 20:50:56 +02:00
federatedx_io.cc Merge 11.4 into 11.8 2025-03-05 20:39:47 +02:00
federatedx_io_mysql.cc Tag rest of my_vsnprintf users w/ ATTRIBUTE_FORMAT 2025-02-12 10:17:44 +01:00
federatedx_io_null.cc cleanup: remove unconditional #ifdef's 2024-11-05 14:00:47 -08:00
federatedx_probes.h Added federatedx storage engine 2009-10-30 20:50:56 +02:00
federatedx_pushdown.cc MDEV-37815 connect_string in partitioning is broken 2026-02-06 17:46:52 +01:00
federatedx_pushdown.h Merge branch '10.11' into 11.1 2024-07-08 22:40:16 +02:00
federatedx_txn.cc cleanup: remove unconditional #ifdef's 2024-11-05 14:00:47 -08:00
ha_federatedx.cc MDEV-37815 connect_string in partitioning is broken 2026-02-06 17:46:52 +01:00
ha_federatedx.h cleanup: extract transaction-related part of handlerton 2024-11-05 14:00:50 -08:00
README Added federatedx storage engine 2009-10-30 20:50:56 +02:00
README.windows CRLF->LF 2015-06-02 22:07:47 +02:00

This is the FederatedX Storage Engine, developed as an external storage engine.

NOTE:

The following is only relevant if you use it for MySQL.  MariaDB already comes
with the latest version of FederatedX.

To install, grab a copy of the mysql source code and run this:

./configure --with-mysql=/path/to/src/mysql-5.x --libdir=/usr/local/lib/mysql/

make install

And then inside of MySQL:

mysql> INSTALL PLUGIN federatedx SONAME 'libfederatedx_engine.so';

mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="mysql://root@host/schema/table"

or 

mysql> CREATE TABLE `d` (`a` varchar(125), b text, primary key(a)) ENGINE=FEDERATEDX CONNECTION="server" CHARSET=latin1;

You will probably need to edit the Makefile.am in the src/ tree if you want
to build on anything other then Linux (and the Makefile assumes that the
server was not compiled for debug). The reason for the two possible
configure lines is that libdir is dependent on where MySQL was installed. If
you run the "INSTALL PLUGIN ..." and you get a file not found, check that
your configured this directory correctly.

For Solaris you can enable DTrace probes by adding to configure
--enable-dtrace