plugin development question - getting a DB connection

Hi,

What is the best way to obtain a connection to the TC database from within a plugin? Do I need to read database.properties and create my own connection, or is there a better way using the openAPI? I can't seem to find any managers or classes to help with this.

Thanks,

--Steve

2 comments

Hello,

You need SQLRunner service. This service can be provided to you by Spring or you may call SBuildServer.getSQLRunner().

--
Pavel Sher

0

Please sign in to leave a comment.