In Python scripting for MySQL Workbench 5.2.34, grt.root.wb does not have physicalModels?

While this is not a complete solution this is my work in progress on trying to figure this out as well. From what I can tell the wb.docs. PhysicalModels object is only available when in 'design/model' mode, what I need to do it run a script in SQL Editor mode.

The code below does execute queries and returns results, but I'm struggling with documentation not matching what I'm seeing in the objects right now. Hopefully this is of some help.

While this is not a complete solution this is my work in progress on trying to figure this out as well. From what I can tell the wb.docs. PhysicalModels object is only available when in 'design/model' mode, what I need to do it run a script in SQL Editor mode.

The code below does execute queries and returns results, but I'm struggling with documentation not matching what I'm seeing in the objects right now. Hopefully this is of some help import grt for editor in grt.root.wb. SqlEditors: # add some text to the 'Output' tab editor.

AddToOutput("Test", 0) results = editor. ExecuteScript("show tables") #print results.rowCount() # the above throws an exception because what is returned from executeScript() differs from the docs print results for buffer in editor. QueryBuffers: print buffer.

ReplaceContents("test").

So... it seems it matters how you load the script editor. As described, I was having trouble. However, after reading this, I loaded up the script editor from within the model editor, and it worked without fuss.

– The Nate Jul 16 at 20:19 I'm accepting this as the best answer since through it I found a partial solution, but I'm still wondering. – The Nate Jul 28 at 18:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions