Is there any database-like feature in SDK?
I have thousands of json objects to be saved and read.
They are application level.
What's the best way to do this kinda job? A BIG xml via PersistentStateComponent?
Best regards,
IL
Please sign in to leave a comment.
I thnk the JDK comes with the Derby DB built in.
Is there any api in OpenAPI or platform SDK?
If no, where should I save my db file?
If you don't know what Derby is just Google it. It's an API in the JDK itself I think....the db ships with the JDK at any rate.... and as such is available for you to use just like any other java library in the JDK.
I sure know derby! And I know that not every JDK(see openjdk) includes Java DB.
I can choose H2 as my embedded DB engine, or db4o as well.
If there is something like PersistentStateComponent, I just use it.
Or I need a folder to save my db file.
Maybe PathManager.getOptionsPath.
IL
There is no general purpose database facility in the IntelliJ IDEA platfrom. Storing a Derby or HSQLDB file in the directory returned by PathManager.getOptionsPath() is a perfectly fine approach.