MySQL Forums
Forum List  »  MySQL Workbench

parseSqlScriptFile?
Posted by: Guy markey
Date: May 13, 2009 12:31AM

G'day,
I'm trying to write a plugin script that will import a mySql script file (Actually it creates a script file and then I want to import it). I have no problem with the createing part and can import the created file using the File>Import>Reverse Engineer MySql Create Script.. menu option, that works fine.
In my script I am trying to use WbMysqlImport:parseSqlScriptFile(db_Catalog, s) to import it, since this seems to be the function that should do it. The problem is it doesn't seem to do anything and there is precious little documentation to tell me wether I'm barking up the wrong tree, so to speak.
When I run my script I get the following output...
Started parsing MySQL SQL script.
Finished parsing MySQL SQL script. Totally processed statements:successful(0), errors(0),warnings(0).

Any hints?

Options: ReplyQuote


Subject
Views
Written By
Posted
parseSqlScriptFile?
3756
May 13, 2009 12:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.