I have been working on a module that creates a graph database driver and adds some simple querying functionality to said graph database.
I currently only have the capability to connect to one database, but I would like to extend that to have multiple connections, as well as an embedded database instead of just remote ones.
I know that I can instantiate the database in the same JVM in ignition, and then reference it locally with scripting that way. However I am curious where is the best place to do that?
I know that I could instantiate it in the gateway hook and then get reference to it through rpc in the common and client scopes, but is that the best place to put it? I am relatively new to java so if there is a common term for what I am looking for that would be great to know as well!