Skip to content

SidePlugin Seamless Integration

ZengJingtao edited this page Jan 30, 2023 · 2 revisions

SidePlugin seamless integration

At that time, TerarkDB used TerarkZipTable through Hack DB::Open (detecting specific environment variables). For users, there is no need to modify any code, just link the dynamic library of TerarkDB and set the corresponding environment variables in the startup script. Although this method is crude, it can solve the problem.

Now, SidePlugin provides very powerful functions, but requires the user to modify the code. Although only the DB Open/Close code needs to be modified, the code still needs to be modified.

What if the user doesn't want to change even one line of code?

There are always more ways than difficulties. We can copy the way of Hack DB::Open to detect environment variables...

But right now, we don't have such a need...