Macro to Query Database and Return List or Dict of Tables to Global Variables

gblack686
gblack686 Partner, Registered Posts: 62 Partner

So apparently I can't read a dataset in a Python plugin unless I declare it as an input? Weird because I can with my do() function in my resource folder.

Now I'm going to try and run a macro in the plugin to update a global variable. I will then read that global variable in to my plugin script.

I need to return a list of strings of all table names from my SQL database into the project variable/global variables. How can I do this with a macro?

Best Answer

Setup Info
    Tags
      Help me…