Scripted Extensions

Any documentation around these yet?
Will they only be Clojure based?
DasTable object?

I'm 70% of the way there to building an EF POCO generator and I'd reallllly like to have the next 15%....

0
Avatar
Permanently deleted user

Hi Stryder!

Open API sources are available in %IDE_HOME%/lib/src/src_database-openapi.zip.

If you can't figure out something, ask here - we'll gladly help you.

0
Avatar
Permanently deleted user

Hello,

 

Is there a way to get an example of extension for schema in javascript? The only one providing is in clojure.

 

Thanks

0

Hello Teddy,

There is no JavaScript version of the extractor. The last snippet you asked for in support request would look like:

FILES.chooseDirectoryAndSave(
  "Choose directory",
  "Choose where to put generated stuff",
  new com.intellij.util.Consumer({
    consume: function(directory) {
      com.intellij.openapi.util.io.FileUtil.writeToFile(
        new java.io.File(directory, "file.txt"),
        "Hello!"
      );
      FILES.refresh(directory);
    }
  })
);

There is a zip with Open API sources available in the /lib/ directory, which you can use for refference. Check for example

com.intellij.database.view.generators.DatabaseViewExtensionScriptsBindings; com.intellij.database.view.generators.Files#chooseDirectoryAndSave

 

 

0

I don't think I got enough clarity on my older question: What other languages are currently supported for writing schema scripts besides clojure and javascript?


0

All JSR-223 scripting languages which are supported by JVM (for which JVM provides ScriptEngine) are supported by IDE.

0

请先登录再写评论。