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
Please sign in to leave a comment.
Hello,
You need SQLRunner service. This service can be provided to you by Spring or you may call SBuildServer.getSQLRunner().
--
Pavel Sher
Oh okay, I see now. Thanks!