MySQL has a quite unique feature: the pluggable storage engine interface. Thanks to it MySQL supports different Storage Engines for different needs: MyISAM is perfect for heavy read, InnoDB for transational data and blackhole .... for sending data to /dev/null.
Thanks to some advance science we now have a wormhole Storage Engine. While the blackhole can only be written to but nothing ever comes back, the wormhole is the inverse of it. You get data from another galaxy, but all writes might have no effect on your side. Sounds useful ?
What's the deal ? The wormhole SE is a
lua-based storage engine. The data is "stored" in a
script-language. ... Ok, this explaination doesn't help very
much. Let's take a look at an example:
The CREATE TABLE for a wormhole table is pretty
simple. No magic:
1 2 3 4 |
… |