Replies: 3 comments 4 replies
|
This is specific idea only for database plugins ? Or is it for any plugin . I do think we need better documentation of what plugions are available and what each plugin do and possibly some categorization. But possibly having a page like https://docs.pytest.org/en/latest/reference/plugin_list.html would be a good first step. |
2 replies
|
For database plugins btw, I've been thinking that we probably can make it easier to create a new db plugin and remove duplication across different plugins - #1444 If we have vdk-databese "base" plugin , then we can include some db connector discoverability logic there. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, folks,
I want to gather ideas or proposals for capabilities of a potential
vdk-connectorsplugin, dedicated tohelp users to discover the VDK database connectors currently available.
I am thinking of configurable
{"repo1": "dir", "repo2": "dir"}, set by default to{"https://github.com/vmware/versatile-data-kit": "projects/vdk-plugins"}Then, (1) the plugin will dynamically fetch and scan recursively the directory, common to:
git ls-files --directory projects/vdk-pluginsNext step (2) is to parse the files and look for:
ManagedConnectionBaseimplementationcontext.connections.add_open_connection_factory_method()connection registration that wires the implementationdbtypeparam ofcontext.connections.add_open_connection_factory_method()for the name of the database registeredFor example:
class ImpalaConnection(ManagedConnectionBase)in vdk-impala/.../impala_connection.pycontext.connections.add_open_connection_factory_method("IMPALA", ...)in vdk-impala/.../impala_plugin.pyThat would be sufficient to identify if a plugin registers in
vdk-corea new database connection with a particular name.Next step (3) is to parse the directories of connectors identified, looking for
@click.commandprovided,to output the user each available connector's VDK CLI commands.
For example in vdk-impala/.../impala_plugin.py:
For more information, check out the VEP-1418 specification draft #1419
All reactions