Where is the Syntax-Autocorrect data stored in Squirrel-SQL snapshot 20190612_2127?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 15:37:37

问题


In older versions of Squirrel-SQL, autocorrect data was stored in an XML file as documented in Where does Squirrel SQL store its auto correct entries?. After updating to a more recent version, this file no longer exists in the same "syntax" folder (C:\Program Files\SQuirreL SQL Client\plugins\syntax). Does anyone know where I might be able to locate this file?

Since there wasn't much to work with in the old "syntax" folder, I dug into the syntax.jar file in the "plugins" parent folder and found a bunch of .class files in the zipped folder "syntax\net\sourceforge\squirrel_sql\plugins\syntax" (peaking into the .jar file as it were). There were a few files that looked promising, such as

AutoCorrectData.class
AutoCorrectDataItem.class
AutoCorrectProviderImpl.class

But none of them contained autocorrect entries I have added to the client - although the last .class file listed above references an "autocorrectdata.xml" file, which is what I could not find in the first place.

Any help I can get on this would be much appreciated!


回答1:


Doh! Turns out newer versions of Squirrel-SQL store user-defined autocorrect data in local user folders. Makes a lot of sense actually! Found my autocorrectdata.xml file in the following folder:

C:\Users\[My Username]\.squirrel-sql\plugins\syntax



来源:https://stackoverflow.com/questions/57291233/where-is-the-syntax-autocorrect-data-stored-in-squirrel-sql-snapshot-20190612-21

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!